1
mirror of https://github.com/revanced/revanced-integrations synced 2024-11-22 05:02:19 +01:00

fix(YouTube - Enable tablet layout): Respect the original device layout

This commit is contained in:
oSumAtrIX 2023-11-23 00:59:31 +01:00
parent 1ebf8e04a6
commit 9e3e747ce6
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -3,7 +3,9 @@ package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public final class EnableTabletLayoutPatch {
public static boolean enableTabletLayout() {
return SettingsEnum.TABLET_LAYOUT.getBoolean();
public static boolean enableTabletLayout(final boolean isTablet) {
if (SettingsEnum.TABLET_LAYOUT.getBoolean()) return true;
return isTablet;
}
}