[Android] Show tablet UI on chromebooks even without TSP
Geoffrey Métais
git at videolan.org
Wed Dec 6 14:33:27 CET 2017
vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 5 10:22:34 2017 +0100| [9bbf6d3c8eea6269babe8c7be9738a546a657bdb] | committer: Geoffrey Métais
Show tablet UI on chromebooks even without TSP
(cherry picked from commit bb6ccd1a2e5a5c8fcc069353e90a25bc55b9e2bb)
> https://code.videolan.org/videolan/vlc-android/commit/9bbf6d3c8eea6269babe8c7be9738a546a657bdb
---
vlc-android/src/org/videolan/vlc/StartActivity.java | 2 +-
vlc-android/src/org/videolan/vlc/VLCApplication.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 408f7677f..ededc3dac 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -110,7 +110,7 @@ public class StartActivity extends FragmentActivity implements StoragePermission
}
private boolean showTvUi() {
- return AndroidUtil.isJellyBeanMR1OrLater && (AndroidDevices.isAndroidTv || !AndroidDevices.hasTsp ||
+ return AndroidUtil.isJellyBeanMR1OrLater && (AndroidDevices.isAndroidTv || (!AndroidDevices.isChromeBook && !AndroidDevices.hasTsp) ||
PreferenceManager.getDefaultSharedPreferences(this).getBoolean("tv_ui", false));
}
diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 60625984e..d9789d8b8 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -105,7 +105,7 @@ public class VLCApplication extends Application {
// Prepare cache folder constants
AudioUtil.prepareCacheFolder(instance);
- sTV = AndroidDevices.isAndroidTv || !AndroidDevices.hasTsp;
+ sTV = AndroidDevices.isAndroidTv || (!AndroidDevices.isChromeBook && !AndroidDevices.hasTsp);
if (!VLCInstance.testCompatibleCPU(instance))
return;
More information about the Android
mailing list