[Android] Show tablet UI on chromebooks even without TSP

Geoffrey Métais git at videolan.org
Tue Dec 5 10:50:54 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec  5 10:22:34 2017 +0100| [bb6ccd1a2e5a5c8fcc069353e90a25bc55b9e2bb] | committer: Geoffrey Métais

Show tablet UI on chromebooks even without TSP

> https://code.videolan.org/videolan/vlc-android/commit/bb6ccd1a2e5a5c8fcc069353e90a25bc55b9e2bb
---

 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