Skip to content

Commit

Permalink
Disable media tunneling on cvt_mt5886_eu_1g (#6024)
Browse files Browse the repository at this point in the history
* Disable media tunneling on cvt_mt5886_eu_1g

Follow-up to 4a9d210.
  • Loading branch information
davidebeatrici authored Apr 8, 2021
1 parent 76322d8 commit cf3cc2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -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;
}

}

0 comments on commit cf3cc2e

Please sign in to comment.