Commit 7d588250 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Merge pull request #11 in THFM/fm.touhou.touhoufm from...

Merge pull request #11 in THFM/fm.touhou.touhoufm from bugfix/THFMA-5-nullpointer-exception-in-radioservice to development

* commit 'b21e3956':
  Fix NullPointer exception in RadioService
parents 804434a4 b21e3956
......@@ -293,7 +293,8 @@ public class RadioService extends Service implements AudioManager.OnAudioFocusCh
runOnUiThread(new Runnable() {
@Override
public void run() {
activity.setPlayingStatus(false);
if(activity != null)
activity.setPlayingStatus(false);
mBuilder.setContentText("Stopped").setSmallIcon(R.drawable.ic_stat_stopped);
mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment