mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
feat: tablet-mini-player
patch
This commit is contained in:
parent
e67f47876c
commit
e43de8b0b4
@ -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();
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user