[Android] Check directories in preferences with right arrow

Geoffrey Métais git at videolan.org
Wed Feb 4 15:35:53 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb  4 15:27:50 2015 +0100| [541ba8503f185ae7a7abd9e31b44bbe59aba593a] | committer: Geoffrey Métais

Check directories in preferences with right arrow

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

 vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
index 89983ae..65af6ed 100644
--- a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
@@ -49,6 +49,7 @@ import android.view.KeyEvent;
 import android.view.MenuItem;
 import android.view.View;
 import android.widget.AdapterView.AdapterContextMenuInfo;
+import android.widget.CheckBox;
 import android.widget.EditText;
 import android.widget.ListView;
 import android.widget.Toast;
@@ -249,6 +250,11 @@ public class BrowserActivity extends ListActivity {
                     return true;
                 }
             }
+        } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT){
+            CheckBox cb = (CheckBox) getListView().getSelectedView().findViewById(R.id.browser_item_selected);
+            if (cb != null)
+                cb.toggle();
+            return true;
         }
         return super.onKeyDown(keyCode, event);
     }



More information about the Android mailing list