[Android] Do not force keyboard display on Android TV
Geoffrey Métais
git at videolan.org
Mon Apr 4 10:46:19 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr 4 10:41:52 2016 +0200| [f6c141056c3ea2b9dbe2c67065629367010a3773] | committer: Geoffrey Métais
Do not force keyboard display on Android TV
> https://code.videolan.org/videolan/vlc-android/commit/f6c141056c3ea2b9dbe2c67065629367010a3773
---
vlc-android/src/org/videolan/vlc/gui/dialogs/VlcLoginDialog.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcLoginDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcLoginDialog.java
index c2ae549..12ee33d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcLoginDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/VlcLoginDialog.java
@@ -38,6 +38,7 @@ import org.videolan.vlc.VLCApplication;
import org.videolan.vlc.databinding.VlcLoginDialogBinding;
import org.videolan.vlc.gui.helpers.UiTools;
import org.videolan.vlc.gui.preferences.PreferencesActivity;
+import org.videolan.vlc.util.AndroidDevices;
import org.videolan.vlc.util.Util;
public class VlcLoginDialog extends VlcDialog<Dialog.LoginDialog, VlcLoginDialogBinding> implements View.OnFocusChangeListener {
@@ -52,7 +53,7 @@ public class VlcLoginDialog extends VlcDialog<Dialog.LoginDialog, VlcLoginDialog
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
- if (VLCApplication.showTvUi()) {
+ if (VLCApplication.showTvUi() && !AndroidDevices.hasPlayServices()) {
mBinding.login.setOnFocusChangeListener(this);
mBinding.password.setOnFocusChangeListener(this);
}
More information about the Android
mailing list