Skip to content

Commit cd9b22a

Browse files
committed
Improve TV box detection
Fixes #601
1 parent f3fd1d5 commit cd9b22a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
applicationId "com.brouken.player"
1212
minSdkVersion 21
1313
targetSdkVersion 34
14-
versionCode 166
14+
versionCode 167
1515
versionName "0.${versionCode}"
1616
archivesBaseName = "Just.Player.v${versionName}"
1717
}

app/src/main/java/com/brouken/player/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public static boolean isTvBox(Context context) {
447447
// Legacy storage no longer works on Android 11 (level 30)
448448
if (Build.VERSION.SDK_INT < 30) {
449449
// (Some boxes still report touchscreen feature)
450-
if (!pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN)) {
450+
if (!pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN) && !pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
451451
return true;
452452
}
453453

0 commit comments

Comments
 (0)