[Android] DetailView on network favorites with Y button

Geoffrey Métais git at videolan.org
Fri Mar 13 16:21:15 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 13 13:58:45 2015 +0100| [1117953e3f9110d31d790cde987bfd281e776109] | committer: Geoffrey Métais

DetailView on network favorites with Y button

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

 vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index 2bff457..42d1818 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -171,7 +171,7 @@ public class MainTvActivity extends Activity implements IVideoBrowser, OnItemVie
 
     @Override
     public boolean onKeyDown(int keyCode, KeyEvent event) {
-        if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE && mSelectedItem instanceof MediaWrapper){
+        if ((keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE || keyCode == KeyEvent.KEYCODE_BUTTON_Y) && mSelectedItem instanceof MediaWrapper){
             MediaWrapper media = (MediaWrapper) mSelectedItem;
             if (media.getType() != MediaWrapper.TYPE_DIR)
                 return false;



More information about the Android mailing list