From 3cf94382e6faeb2a0b9b92f93b96d80780ec4adb Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 27 Sep 2021 13:21:04 +0200 Subject: [PATCH] Disable media tunneling on RealtekATV --- app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java index 8d918c162..cdd254f8f 100644 --- a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java @@ -32,6 +32,9 @@ public final class DeviceUtils { // Zephir TS43UHD-2 private static final boolean CVT_MT5886_EU_1G = Build.VERSION.SDK_INT == 24 && Build.DEVICE.equals("cvt_mt5886_eu_1g"); + // Hilife TV + private static final boolean REALTEKATV = Build.VERSION.SDK_INT == 25 + && Build.DEVICE.equals("RealtekATV"); private DeviceUtils() { } @@ -128,6 +131,7 @@ public final class DeviceUtils { public static boolean shouldSupportMediaTunneling() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !HI3798MV200 - && !CVT_MT5886_EU_1G; + && !CVT_MT5886_EU_1G + && !REALTEKATV; } }