commit | 94befc7f09d72386d2e6fa83ea843e049ab6aae1 | [log] [tgz] |
---|---|---|
author | Danesh M <daneshm90@gmail.com> | Wed Nov 26 14:39:00 2014 -0800 |
committer | LuK1337 <priv.luk@gmail.com> | Tue Oct 08 15:20:58 2019 +0200 |
tree | 92de1039f2f3c75fc666e93c1135ffc1b0842486 | |
parent | a2404d0e8c5a4caa3f6c95445fc998eda989bd5e [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 fd48210..49677de 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -520,6 +520,13 @@ mERadioTextScroller.stopScroll(); FmSharedPreferences.setTunedFrequency(mTunedStation.getFrequency()); mPrefs.Save(); + if (mService != null) { + try { + mService.unregisterCallbacks(); + } catch (RemoteException e) { + e.printStackTrace(); + } + } } @Override