[Android] Shortcut uniformization between debug and release builds

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Feb  4 12:57:28 2025 +0100| [5cd1a898d17de7f2c4c36c44de5fcc7f84e7d2a9] | committer: Duncan McNamara

Shortcut uniformization between debug and release builds

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

 .../flavors/debug/res/xml/shortcuts.xml            | 88 ++++++++--------------
 1 file changed, 32 insertions(+), 56 deletions(-)

diff --git a/application/vlc-android/flavors/debug/res/xml/shortcuts.xml b/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
index 0e8517abc3..301fc241e1 100644
--- a/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
+++ b/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
@@ -1,78 +1,54 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shortcuts xmlns:tools="http://schemas.android.com/tools"
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    tools:targetApi="n_mr1" >
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        tools:targetApi="n_mr1" >
     <shortcut
-        android:shortcutId="last_playlist"
-        android:enabled="true"
+            android:shortcutId="last_playlist"
+            android:enabled="true"
             android:icon="@drawable/ic_shortcut_resume_playback"
             android:shortcutShortLabel="@string/resume_audio_playback_short_title"
             android:shortcutLongLabel="@string/resume_audio_playback_long_title">
         <intent
-            android:action="vlc.shortcut.resume"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
+                android:action="vlc.shortcut.resume"
+                android:targetPackage="org.videolan.vlc.debug"
+                android:targetClass="org.videolan.vlc.StartActivity" />
         <categories android:name="vlc.shortcut.category" />
     </shortcut>
     <shortcut
-        android:shortcutId="playlists"
-        android:enabled="true"
-        android:icon="@drawable/ic_playlist"
-        android:shortcutShortLabel="@string/playlists"
-        android:shortcutLongLabel="@string/playlists">
+            android:shortcutId="browser"
+            android:enabled="true"
+            android:icon="@drawable/ic_folder"
+            android:shortcutShortLabel="@string/directories"
+            android:shortcutLongLabel="@string/directories" >
         <intent
-            android:action="vlc.shortcut.playlists"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
+                android:action="vlc.shortcut.browser"
+                android:targetPackage="org.videolan.vlc.debug"
+                android:targetClass="org.videolan.vlc.StartActivity" />
         <categories android:name="vlc.shortcut.category" />
     </shortcut>
     <shortcut
-        android:shortcutId="browser"
-        android:enabled="true"
-        android:icon="@drawable/ic_folder"
-        android:shortcutShortLabel="@string/directories"
-        android:shortcutLongLabel="@string/directories" >
+            android:shortcutId="video"
+            android:enabled="false"
+            android:icon="@drawable/ic_video"
+            android:shortcutShortLabel="@string/video"
+            android:shortcutLongLabel="@string/video"
+            tools:targetApi="n_mr1">
         <intent
-            android:action="vlc.shortcut.browser"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
+                android:action="vlc.shortcut.video"
+                android:targetPackage="org.videolan.vlc.debug"
+                android:targetClass="org.videolan.vlc.StartActivity" />
         <categories android:name="vlc.shortcut.category" />
     </shortcut>
     <shortcut
-        android:shortcutId="video"
-        android:enabled="false"
-        android:icon="@drawable/ic_video"
-        android:shortcutShortLabel="@string/video"
-        android:shortcutLongLabel="@string/video"
-        tools:targetApi="n_mr1">
+            android:shortcutId="audio"
+            android:enabled="false"
+            android:icon="@drawable/ic_menu_audio"
+            android:shortcutShortLabel="@string/audio"
+            android:shortcutLongLabel="@string/audio">
         <intent
-            android:action="vlc.shortcut.video"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
-        <categories android:name="vlc.shortcut.category" />
-    </shortcut>
-    <shortcut
-        android:shortcutId="audio"
-        android:enabled="false"
-        android:icon="@drawable/ic_menu_audio"
-        android:shortcutShortLabel="@string/audio"
-        android:shortcutLongLabel="@string/audio">
-        <intent
-            android:action="vlc.shortcut.audio"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
-        <categories android:name="vlc.shortcut.category" />
-    </shortcut>
-    <shortcut
-        android:shortcutId="network"
-        android:enabled="false"
-        android:icon="@drawable/ic_network"
-        android:shortcutShortLabel="@string/network_browsing"
-        android:shortcutLongLabel="@string/network_browsing" >
-        <intent
-            android:action="vlc.shortcut.network"
-            android:targetPackage="org.videolan.vlc.debug"
-            android:targetClass="org.videolan.vlc.StartActivity" />
+                android:action="vlc.shortcut.audio"
+                android:targetPackage="org.videolan.vlc.debug"
+                android:targetClass="org.videolan.vlc.StartActivity" />
         <categories android:name="vlc.shortcut.category" />
     </shortcut>
 </shortcuts>



More information about the Android mailing list