Skip to content

Commit 1edb906

Browse files
committed
Fixed detection of the "Android TV Box" as a TV
(cherry picked from commit 1dcc6e2)
1 parent 1faaa12 commit 1edb906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,10 +1270,10 @@ public static boolean isAndroidTV() {
12701270
if (Build.MANUFACTURER.equals("MINIX") && Build.MODEL.equals("NEO-U1")) {
12711271
return true;
12721272
}
1273-
if (Build.MANUFACTURER.equals("Amlogic") && Build.MODEL.equals("X96-W")) {
1274-
return true;
1275-
}
1276-
if (Build.MANUFACTURER.equals("Amlogic") && Build.MODEL.startsWith("TV")) {
1273+
if (Build.MANUFACTURER.equals("Amlogic") &&
1274+
(Build.MODEL.startsWith("TV") ||
1275+
Build.MODEL.equals("X96-W") ||
1276+
Build.MODEL.equals("A95X-R1"))) {
12771277
return true;
12781278
}
12791279
return false;

0 commit comments

Comments
 (0)