commit | 97ff6cc6674b00f24f05b644375b0fec196ccc91 | [log] [tgz] |
---|---|---|
author | Danesh M <daneshm90@gmail.com> | Wed Nov 26 14:39:00 2014 -0800 |
committer | Michael Bestas <mkbestas@lineageos.org> | Fri Oct 20 02:04:34 2023 +0300 |
tree | 127d750eaa8df028be095e3f15d77ef2f36593e5 | |
parent | 27d672f10a192f393271c97ab208ad5e060f8452 [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 501af92..c6465f7 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