[Android] Append options for videos

Geoffrey Métais git at videolan.org
Fri Dec 4 11:42:45 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec  4 11:42:25 2015 +0100| [5e09b18d0b1240d9af96cc482bfbd7c40da1d834] | committer: Geoffrey Métais

Append options for videos

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5e09b18d0b1240d9af96cc482bfbd7c40da1d834
---

 vlc-android/res/menu/video_group_contextual.xml                  |    3 +++
 vlc-android/res/menu/video_list.xml                              |    3 +++
 .../src/org/videolan/vlc/gui/video/VideoGridFragment.java        |    6 +++++-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/menu/video_group_contextual.xml b/vlc-android/res/menu/video_group_contextual.xml
index 3badd7e..20666bd 100644
--- a/vlc-android/res/menu/video_group_contextual.xml
+++ b/vlc-android/res/menu/video_group_contextual.xml
@@ -4,4 +4,7 @@
     <item
         android:id="@+id/video_group_play"
         android:title="@string/play" />
+    <item
+        android:id="@+id/video_list_append"
+        android:title="@string/append_all" />
 </menu>
\ No newline at end of file
diff --git a/vlc-android/res/menu/video_list.xml b/vlc-android/res/menu/video_list.xml
index 873e32a..ca9a159 100644
--- a/vlc-android/res/menu/video_list.xml
+++ b/vlc-android/res/menu/video_list.xml
@@ -8,6 +8,9 @@
         android:id="@+id/video_list_play_all"
         android:title="@string/play_all" />
     <item
+        android:id="@+id/video_list_append"
+        android:title="@string/append" />
+    <item
         android:id="@+id/video_list_play_audio"
         android:title="@string/play_as_audio" />
     <item
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 5f03e89..beaae76 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -314,7 +314,11 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
                 return true;
             case R.id.video_group_play:
                 MediaUtils.openList(getActivity(), ((MediaGroup) media).getAll(), 0);
-
+            case R.id.video_list_append:
+                if (media instanceof MediaGroup)
+                    mService.append(((MediaGroup)media).getAll());
+                else
+                    mService.append(media);
         }
         return false;
     }



More information about the Android mailing list