[Android] Fix subs picker DPAD navigation

Geoffrey Métais git at videolan.org
Tue Nov 21 11:25:44 CET 2017


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 21 11:23:20 2017 +0100| [537776d72957b1f5a165c0abc39c69e1bb43aad2] | committer: Geoffrey Métais

Fix subs picker DPAD navigation

(cherry picked from commit 2809d417d15bd2801bba6dc8a8fb32487ae360c8)

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

 vlc-android/res/layout/file_picker_activity.xml                       | 4 +++-
 vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/file_picker_activity.xml b/vlc-android/res/layout/file_picker_activity.xml
index f707618a2..9d02cfb49 100644
--- a/vlc-android/res/layout/file_picker_activity.xml
+++ b/vlc-android/res/layout/file_picker_activity.xml
@@ -14,7 +14,9 @@
         android:onClick="onHomeClick"
         tools:targetApi="11"
         android:src="@drawable/ic_browser_home_normal"
-        android:scaleType="fitCenter" />
+        android:scaleType="fitCenter"
+        android:focusable="true"
+        android:clickable="true"/>
     <FrameLayout
         android:id="@+id/fragment_placeholder"
         android:layout_width="match_parent"
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
index 0c1d9265f..da6e2564f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
@@ -87,6 +87,7 @@ public class FileBrowserFragment extends BaseBrowserFragment {
     @Override
     protected void browseRoot() {
         mMrl = null;
+        mRoot = true;
         final FragmentActivity activity = getActivity();
         if (activity == null) return;
         activity.setTitle(R.string.directories);



More information about the Android mailing list