commit | 6f9b3fd43caeb2d8e659abf7c74460ea28c38bb3 | [log] [tgz] |
---|---|---|
author | Danesh M <daneshm90@gmail.com> | Wed Nov 26 14:39:00 2014 -0800 |
committer | Michael Bestas <mkbestas@lineageos.org> | Wed Aug 24 02:16:25 2022 +0300 |
tree | 441d3386dbee334e6a432edbc592c51156343a23 | |
parent | a5af0dd38ed262f89027ea825791bc1fb963aff2 [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