From cf3cc2e9840261c30c780d06a0233805f99e2f79 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Thu, 8 Apr 2021 05:21:57 +0200 Subject: [PATCH] Disable media tunneling on cvt_mt5886_eu_1g (#6024) * Disable media tunneling on cvt_mt5886_eu_1g Follow-up to 4a9d21062a1f9097de788fb82a14dcca3184ce42. --- app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 0704dad66f3..91578f27ee2 100644 --- a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java @@ -26,6 +26,9 @@ public final class DeviceUtils { // Formuler Z8 Pro, Z8, CC, Z Alpha, Z+ Neo private static final boolean HI3798MV200 = Build.VERSION.SDK_INT == 24 && Build.DEVICE.equals("Hi3798MV200"); + // Zephir TS43UHD-2 + private static final boolean CVT_MT5886_EU_1G = Build.VERSION.SDK_INT == 24 + && Build.DEVICE.equals("cvt_mt5886_eu_1g"); private DeviceUtils() { } @@ -103,7 +106,7 @@ public static int spToPx(@Dimension(unit = Dimension.SP) final int sp, */ public static boolean shouldSupportMediaTunneling() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP - && !HI3798MV200; + && !HI3798MV200 + && !CVT_MT5886_EU_1G; } - }