[Android] Fix Dialog activity launch (to squash)

Geoffrey Métais git at videolan.org
Wed Feb 3 17:37:38 CET 2016


vlc-android | branch: dialog | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb  3 17:37:13 2016 +0100| [b5e318261c8f322e06a804c2397d5e7a1e86aa6a] | committer: Geoffrey Métais

Fix Dialog activity launch (to squash)

> https://code.videolan.org/videolan/vlc-android/commit/b5e318261c8f322e06a804c2397d5e7a1e86aa6a
---

 vlc-android/src/org/videolan/vlc/VLCApplication.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 335d927..c9d5176 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -207,6 +207,7 @@ public class VLCApplication extends Application {
 
     private void fireDialog(Dialog dialog, String key) {
         storeData(key, dialog);
-        startActivity(new Intent(instance, DialogActivity.class).setAction(key));
+        startActivity(new Intent(instance, DialogActivity.class).setAction(key)
+                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
     }
 }



More information about the Android mailing list