diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-07-20 23:04:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 23:04:49 +0200 |
commit | ef31878a1004194d1b258a0727fa459d8a101c15 (patch) | |
tree | e4e3323aee960e65ee329bfccf907512c088523e /core/src | |
parent | 44b37fc04303ec1b71d358e3c5b56ee560f9a85d (diff) | |
parent | ab9f21154d41ce90e64421238abac21b631cf23d (diff) | |
download | AntennaPod-ef31878a1004194d1b258a0727fa459d8a101c15.zip |
Merge pull request #2068 from MeirSD/develop
Fix issue where mini player doesn't show up
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 10386a423..5e1057716 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -209,6 +209,8 @@ public class PlaybackService extends MediaBrowserServiceCompat { private static volatile MediaType currentMediaType = MediaType.UNKNOWN; + private final IBinder mBinder = new LocalBinder(); + public class LocalBinder extends Binder { public PlaybackService getService() { return PlaybackService.this; @@ -384,7 +386,11 @@ public class PlaybackService extends MediaBrowserServiceCompat { @Override public IBinder onBind(Intent intent) { Log.d(TAG, "Received onBind event"); - return super.onBind(intent); + if(intent.getAction() != null && TextUtils.equals(intent.getAction(), MediaBrowserServiceCompat.SERVICE_INTERFACE)) { + return super.onBind(intent); + } else { + return mBinder; + } } @Override |