Skip to content
Snippets Groups Projects
Commit 4b29cc48 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Promotion of fm.lnx.1.0-00020.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
992487   Iba131108d2b358678e4894dfedfbbf9d784c8217   Fix null pointer exception in FMRadioService

Change-Id: I76f4d95d9b9d5d5081c8c174bd6fec64e0b1f557
CRs-Fixed: 992487
parents 291951cc e1a4ab0c
Branches
No related tags found
No related merge requests found
...@@ -967,6 +967,7 @@ public class FMRadioService extends Service ...@@ -967,6 +967,7 @@ public class FMRadioService extends Service
if (isFmOn() && getResources() if (isFmOn() && getResources()
.getBoolean(R.bool.def_headset_next_enabled)) { .getBoolean(R.bool.def_headset_next_enabled)) {
try { try {
if ((mServiceInUse) && (mCallbacks != null))
mCallbacks.onSeekNextStation(); mCallbacks.onSeekNextStation();
}catch (RemoteException e) { }catch (RemoteException e) {
} }
...@@ -1066,6 +1067,7 @@ public class FMRadioService extends Service ...@@ -1066,6 +1067,7 @@ public class FMRadioService extends Service
mPlaybackInProgress = true; mPlaybackInProgress = true;
configureAudioDataPath(true); configureAudioDataPath(true);
try { try {
if ((mServiceInUse) && (mCallbacks != null))
mCallbacks.onFmAudioPathStarted(); mCallbacks.onFmAudioPathStarted();
} catch(RemoteException e) { } catch(RemoteException e) {
e.printStackTrace(); e.printStackTrace();
...@@ -1077,6 +1079,7 @@ public class FMRadioService extends Service ...@@ -1077,6 +1079,7 @@ public class FMRadioService extends Service
configureAudioDataPath(false); configureAudioDataPath(false);
mPlaybackInProgress = false; mPlaybackInProgress = false;
try { try {
if ((mServiceInUse) && (mCallbacks != null))
mCallbacks.onFmAudioPathStopped(); mCallbacks.onFmAudioPathStopped();
} catch(RemoteException e) { } catch(RemoteException e) {
e.printStackTrace(); e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment