From 9e3e747ce66d58b9ee74e812a68e74d1a88288e0 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 23 Nov 2023 00:59:31 +0100 Subject: [PATCH] fix(YouTube - Enable tablet layout): Respect the original device layout --- .../integrations/patches/EnableTabletLayoutPatch.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/patches/EnableTabletLayoutPatch.java b/app/src/main/java/app/revanced/integrations/patches/EnableTabletLayoutPatch.java index 638abd23..83c12917 100644 --- a/app/src/main/java/app/revanced/integrations/patches/EnableTabletLayoutPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/EnableTabletLayoutPatch.java @@ -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; } }