[Android] Fix Gamepad navigation
Geoffrey Métais
git at videolan.org
Wed Jan 27 15:52:30 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 27 12:01:09 2016 +0100| [ce47969d0b258cc3f904c35f794371ae423eae3a] | committer: Geoffrey Métais
Fix Gamepad navigation
> https://code.videolan.org/videolan/vlc-android/commit/ce47969d0b258cc3f904c35f794371ae423eae3a
---
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 4 +---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index 1b248dc..ef363fb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -24,7 +24,6 @@ package org.videolan.vlc.gui.dialogs;
import android.app.Activity;
import android.app.AlarmManager;
-import android.app.Dialog;
import android.app.PendingIntent;
import android.content.Context;
import android.content.DialogInterface;
@@ -33,14 +32,12 @@ import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Bundle;
-import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.preference.PreferenceManager;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.text.format.DateFormat;
-import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
@@ -522,6 +519,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
break;
case KeyEvent.KEYCODE_ENTER:
case KeyEvent.KEYCODE_DPAD_CENTER:
+ case KeyEvent.KEYCODE_BUTTON_A:
onClick(mRecyclerView.getChildAt(mAdapter.getSelection()));
break;
}
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index c547740..e0eaf43 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1095,6 +1095,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
break;
case KeyEvent.KEYCODE_ENTER:
case KeyEvent.KEYCODE_DPAD_CENTER:
+ case KeyEvent.KEYCODE_BUTTON_A:
mService.playIndex(mPlaylistAdapter.getCurrentIndex());
break;
}
More information about the Android
mailing list