[Android] Fix storage dialog showing MainActivity under in some circumstances

Nicolas Pomepuy git at videolan.org
Mon Aug 29 13:38:26 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Aug 29 15:34:09 2022 +0200| [0c16b4483e325388de2d7abec1f035ca76333a8d] | committer: Nicolas Pomepuy

Fix storage dialog showing MainActivity under in some circumstances

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

 application/vlc-android/src/org/videolan/vlc/StoragesMonitor.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/StoragesMonitor.kt b/application/vlc-android/src/org/videolan/vlc/StoragesMonitor.kt
index 6a8189942..757349e4e 100644
--- a/application/vlc-android/src/org/videolan/vlc/StoragesMonitor.kt
+++ b/application/vlc-android/src/org/videolan/vlc/StoragesMonitor.kt
@@ -49,7 +49,7 @@ class StoragesMonitor : BroadcastReceiver() {
                             putExtra(DialogActivity.EXTRA_PATH, action.path)
                             putExtra(DialogActivity.EXTRA_UUID, action.uuid)
                             putExtra(DialogActivity.EXTRA_SCAN, isNew)
-                            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+                            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
                         }
                         action.ctx.startActivity(intent)
                     }



More information about the Android mailing list