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:
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