[Android] Remove pebble specific code
Geoffrey Métais
git at videolan.org
Tue Jun 14 15:42:28 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun 14 15:41:55 2016 +0200| [0de6afe4f2c164f45f4d8d1e329b8659eb064b46] | committer: Geoffrey Métais
Remove pebble specific code
Not needed anymore
> https://code.videolan.org/videolan/vlc-android/commit/0de6afe4f2c164f45f4d8d1e329b8659eb064b46
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 7c0126a..4f4b418 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -145,7 +145,6 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
final private ArrayList<Callback> mCallbacks = new ArrayList<Callback>();
private boolean mDetectHeadset = true;
- private boolean mPebbleEnabled;
private PowerManager.WakeLock mWakeLock;
private final AtomicBoolean mExpanding = new AtomicBoolean(false);
@@ -272,12 +271,6 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
mRemoteControlClientReceiver = new RemoteControlClientReceiver();
registerReceiver(mRemoteControlClientReceiver, filter);
}
- try {
- getPackageManager().getPackageInfo("com.getpebble.android", PackageManager.GET_ACTIVITIES);
- mPebbleEnabled = true;
- } catch (PackageManager.NameNotFoundException e) {
- mPebbleEnabled = false;
- }
if (readPhoneState()) {
initPhoneListener();
@@ -1151,15 +1144,6 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
bob.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, cover.copy(cover.getConfig(), false));
}
mMediaSession.setMetadata(bob.build());
-
- //Send metadata to Pebble watch
- if (mPebbleEnabled) {
- final Intent i = new Intent("com.getpebble.action.NOW_PLAYING");
- i.putExtra("artist", MediaUtils.getMediaArtist(this, media));
- i.putExtra("album", MediaUtils.getMediaAlbum(this, media));
- i.putExtra("track", media.getTitle());
- sendBroadcast(i);
- }
}
protected void publishState(int state) {
More information about the Android
mailing list