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;
}
}