Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix(YouTube - Enable tablet layout): Respect the original device layout
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Nov 22, 2023
1 parent 1ebf8e0 commit 9e3e747
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
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;
}
}

0 comments on commit 9e3e747

Please sign in to comment.