feat: tablet-mini-player patch

This commit is contained in:
oSumAtrIX 2022-08-14 17:32:05 +02:00
parent e67f47876c
commit e43de8b0b4
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 12 additions and 14 deletions

View File

@ -1,14 +0,0 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class MiniplayerOverridePatch {
//ToDo: Write Patch for it.
//See https://drive.google.com/file/d/1G7jn2EdWgNls0Htgs-wPPjjObZL1emzK/view?usp=sharing
//And https://drive.google.com/file/d/1-QlgSiKzqQ5lHXQnvRUpijk0GH9T1Sn7/view?usp=sharing
// for where it needs to be used.
public static boolean getTabletMiniplayerOverride() {
return SettingsEnum.USE_TABLET_MINIPLAYER.getBoolean();
}
}

View File

@ -0,0 +1,12 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class TabletMiniPlayerOverridePatch {
public static boolean getTabletMiniPlayerOverride(boolean original) {
if (SettingsEnum.USE_TABLET_MINIPLAYER.getBoolean())
return true;
return original;
}
}