mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-09-12 17:26:29 +02:00
fix(YouTube - Enable tablet layout): Respect the original device layout
This commit is contained in:
parent
1ebf8e04a6
commit
9e3e747ce6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user