diff options
author | Meir Schwarz <meir@imdde.com> | 2016-07-02 01:13:27 -0700 |
---|---|---|
committer | Meir Schwarz <meir@imdde.com> | 2016-07-20 13:03:38 -0700 |
commit | ab9f21154d41ce90e64421238abac21b631cf23d (patch) | |
tree | 86bccbdbea528d7929e5f226617b047ec481940b /core/src | |
parent | b227c12f397472e37b574f394a24f77766435313 (diff) | |
download | AntennaPod-ab9f21154d41ce90e64421238abac21b631cf23d.zip |
Fix binding issues by only using the MediaBrowserService onBind when the intent's action is MediaBrowserService and otherwise returning the LocalBinder.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 2 |
1 files changed, 1 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 d1fe8a968..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 @@ -386,7 +386,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { @Override public IBinder onBind(Intent intent) { Log.d(TAG, "Received onBind event"); - if(intent.getAction() != null && intent.getAction().equals("android.media.browse.MediaBrowserService")) { + if(intent.getAction() != null && TextUtils.equals(intent.getAction(), MediaBrowserServiceCompat.SERVICE_INTERFACE)) { return super.onBind(intent); } else { return mBinder; |