[Android] Improve logic
Ludovic Fauvet
git at videolan.org
Mon Jun 25 16:45:01 CEST 2012
android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jun 25 16:39:39 2012 +0200| [58d7c3fa3257976889f3f6353356e8ae2577aa04] | committer: Ludovic Fauvet
Improve logic
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=58d7c3fa3257976889f3f6353356e8ae2577aa04
---
vlc-android/src/org/videolan/vlc/AudioService.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index cf3422a..b318a8e 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -146,7 +146,7 @@ public class AudioService extends Service {
play();
} else {
Intent iVlc = new Intent(context, AudioPlayerActivity.class);
- iVlc.putExtra(START_FROM_NOTIFICATION, "");
+ iVlc.putExtra(START_FROM_NOTIFICATION, true);
iVlc.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(iVlc);
}
@@ -321,7 +321,7 @@ public class AudioService extends Service {
Intent notificationIntent = new Intent(this, AudioPlayerActivity.class);
notificationIntent.setAction(Intent.ACTION_MAIN);
notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER);
- notificationIntent.putExtra(START_FROM_NOTIFICATION, "");
+ notificationIntent.putExtra(START_FROM_NOTIFICATION, true);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
mNotification.setLatestEventInfo(this, mCurrentMedia.getTitle(),
mCurrentMedia.getArtist() + " - " + mCurrentMedia.getAlbum(), pendingIntent);
@@ -701,7 +701,7 @@ public class AudioService extends Service {
Intent iForward = new Intent();
iForward.setAction(VLCAppWidgetProvider.ACTION_WIDGET_FORWARD);
Intent iVlc = new Intent(context, MainActivity.class);
- iVlc.putExtra(START_FROM_NOTIFICATION, "");
+ iVlc.putExtra(START_FROM_NOTIFICATION, true);
PendingIntent piBackward = PendingIntent.getBroadcast(context, 0, iBackward, PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent piPlay = PendingIntent.getBroadcast(context, 0, iPlay, PendingIntent.FLAG_UPDATE_CURRENT);
More information about the Android
mailing list