[Android] update widget commands to match recent changes in AudioService
Sébastien Toque
git at videolan.org
Thu Nov 1 19:36:47 CET 2012
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu Nov 1 19:36:41 2012 +0100| [96a316be20f2eb74e4cdb7bb4c827c6161075b1d] | committer: Sébastien Toque
update widget commands to match recent changes in AudioService
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=96a316be20f2eb74e4cdb7bb4c827c6161075b1d
---
.../org/videolan/vlc/widget/VLCAppWidgetProvider.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
index 751d4ff..8413f78 100644
--- a/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
+++ b/vlc-android/src/org/videolan/vlc/widget/VLCAppWidgetProvider.java
@@ -35,10 +35,10 @@ import android.widget.RemoteViews;
public class VLCAppWidgetProvider extends AppWidgetProvider {
public static final String TAG = "VLC/VLCAppWidgetProvider";
public static final String START_FROM_NOTIFICATION = "from_notification";
- public static final String ACTION_WIDGET_BACKWARD = "org.videolan.vlc.widget.Backward";
- public static final String ACTION_WIDGET_PLAY = "org.videolan.vlc.widget.Play";
- public static final String ACTION_WIDGET_STOP = "org.videolan.vlc.widget.Stop";
- public static final String ACTION_WIDGET_FORWARD = "org.videolan.vlc.widget.Forward";
+ public static final String ACTION_REMOTE_BACKWARD = "org.videolan.vlc.remote.Backward";
+ public static final String ACTION_REMOTE_PLAYPAUSE = "org.videolan.vlc.remote.PlayPause";
+ public static final String ACTION_REMOTE_STOP = "org.videolan.vlc.remote.Stop";
+ public static final String ACTION_REMOTE_FORWARD = "org.videolan.vlc.remote.Forward";
public static final String ACTION_WIDGET_UPDATE = "org.videolan.vlc.widget.UPDATE";
public static final String VLC_PACKAGE = "org.videolan.vlc";
@@ -77,10 +77,10 @@ public class VLCAppWidgetProvider extends AppWidgetProvider {
views.setImageViewResource(R.id.cover, R.drawable.cone);
/* commands */
- Intent iBackward = new Intent(ACTION_WIDGET_BACKWARD);
- Intent iPlay = new Intent(ACTION_WIDGET_PLAY);
- Intent iStop = new Intent(ACTION_WIDGET_STOP);
- Intent iForward = new Intent(ACTION_WIDGET_FORWARD);
+ Intent iBackward = new Intent(ACTION_REMOTE_BACKWARD);
+ Intent iPlay = new Intent(ACTION_REMOTE_PLAYPAUSE);
+ Intent iStop = new Intent(ACTION_REMOTE_STOP);
+ Intent iForward = new Intent(ACTION_REMOTE_FORWARD);
Intent iVlc = new Intent();
iVlc.setClassName(VLC_PACKAGE, isplaying ? VLC_PLAYER : VLC_MAIN);
iVlc.putExtra(START_FROM_NOTIFICATION, true);
More information about the Android
mailing list