[Android] AndroidDevices: HTC One hack not needed after 4.2

Thomas Guillem git at videolan.org
Thu Oct 2 12:11:56 CEST 2014


vlc-ports/android | branch: master | Thomas Guillem <thomas.guillem at gmail.com> | Thu Oct  2 11:45:30 2014 +0200| [1fd675b381dede40d4ef089cd080b456cc7e693c] | committer: Jean-Baptiste Kempf

AndroidDevices: HTC One hack not needed after 4.2

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 vlc-android/src/org/videolan/vlc/util/AndroidDevices.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
index 1fa320d..0e4958a 100644
--- a/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
+++ b/vlc-android/src/org/videolan/vlc/util/AndroidDevices.java
@@ -50,8 +50,8 @@ public class AndroidDevices {
         devicesWithoutNavBar.add("HTC One S");
         devicesWithoutNavBar.add("HTC One X");
         devicesWithoutNavBar.add("HTC One XL");
-        hasNavBar = LibVlcUtil.isICSOrLater()
-                && !devicesWithoutNavBar.contains(android.os.Build.MODEL);
+        hasNavBar = LibVlcUtil.isJellyBeanMR1OrLater() || (LibVlcUtil.isICSOrLater()
+                && !devicesWithoutNavBar.contains(android.os.Build.MODEL));
     }
 
     public static boolean hasExternalStorage() {



More information about the Android mailing list