commit | 0684427facd43fb1fc843374629cce379568a09a | [log] [tgz] |
---|---|---|
author | Danesh M <daneshm90@gmail.com> | Wed Nov 26 14:39:00 2014 -0800 |
committer | Arne Coucheron <arco68@gmail.com> | Fri Mar 12 12:03:46 2021 +0100 |
tree | c11c9200c85fb6c73c454584e01acbf6a8abc23c | |
parent | 64f4e62fde04d1db44e6b7e0895b2abe766cd448 [diff] |
FM: Call unregister in onPause Change-Id: I3f063967c06d43e0fe99d08dea5e3e65a3943e8b
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java index 609c4d6..0b66d73 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -556,6 +556,13 @@ mERadioTextScroller.stopScroll(); FmSharedPreferences.setTunedFrequency(mTunedStation.getFrequency()); mPrefs.Save(); + if (mService != null) { + try { + mService.unregisterCallbacks(); + } catch (RemoteException e) { + e.printStackTrace(); + } + } } @Override