feat(YouTube Music): Add Forcibly enable miniplayer patch
Co-Authored-By: ILoveOpenSourceApplications <117499019+iloveopensourceapplications@users.noreply.github.com>
This commit is contained in:
parent
7f52ec2cea
commit
e7196e54b0
6 changed files with 97 additions and 3 deletions
|
|
@ -0,0 +1,13 @@
|
|||
package app.revanced.extension.music.patches;
|
||||
|
||||
import app.revanced.extension.music.settings.Settings;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ForciblyEnableMiniplayerPatch {
|
||||
/**
|
||||
* Injection point
|
||||
*/
|
||||
public static boolean enableForcedMiniplayerPatch(boolean original) {
|
||||
return Settings.FORCIBLY_ENABLE_MINIPLAYER.get() || original;
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,7 @@ public class Settings extends YouTubeAndMusicSettings {
|
|||
|
||||
// Player
|
||||
public static final BooleanSetting CHANGE_MINIPLAYER_COLOR = new BooleanSetting("revanced_music_change_miniplayer_color", FALSE, true);
|
||||
public static final BooleanSetting FORCIBLY_ENABLE_MINIPLAYER = new BooleanSetting("revanced_music_forcibly_enable_miniplayer", FALSE, true);
|
||||
public static final BooleanSetting PERMANENT_REPEAT = new BooleanSetting("revanced_music_play_permanent_repeat", FALSE, true);
|
||||
|
||||
// Miscellaneous
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue