[Android] Force opening the app when using the resume playback shortcut

Nicolas Pomepuy git at videolan.org
Fri Feb 14 11:07:16 UTC 2025


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Feb  3 14:08:13 2025 +0100| [81dca24fca57c0602cdc80077d81b1836bd65fde] | committer: Duncan McNamara

Force opening the app when using the resume playback shortcut

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

 application/vlc-android/src/org/videolan/vlc/StartActivity.kt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
index b22a2e8f1c..4571b7dfa3 100644
--- a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
@@ -230,9 +230,10 @@ class StartActivity : FragmentActivity() {
             } else {
                 val target = idFromShortcut
                 val service = PlaybackService.instance
-                if (target == R.id.ml_menu_last_playlist)
+                if (target == R.id.ml_menu_last_playlist) {
                     PlaybackService.loadLastAudio(this)
-                else if (service != null && service.isInPiPMode.value == true) {
+                    startApplication(tv, firstRun, upgrade, R.id.nav_audio, removeOldDevices)
+                } else if (service != null && service.isInPiPMode.value == true) {
                     service.isInPiPMode.value = false
                     val startIntent = Intent(this, VideoPlayerActivity::class.java)
                     startIntent.flags = Intent.FLAG_ACTIVITY_REORDER_TO_FRONT



More information about the Android mailing list