mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(YouTube Music - Hide action bar components): Add Change action bar position
setting (YouTube Music 7.25.53+)
This commit is contained in:
@ -19,6 +19,8 @@ import app.revanced.extension.shared.utils.PackageUtils;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class ActionBarPatch {
|
||||
private static final boolean CHANGE_ACTION_BAR_POSITION =
|
||||
Settings.CHANGE_ACTION_BAR_POSITION.get();
|
||||
private static final boolean HIDE_ACTION_BUTTON_LABEL =
|
||||
Settings.HIDE_ACTION_BUTTON_LABEL.get();
|
||||
private static final boolean HIDE_ACTION_BUTTON_LIKE_DISLIKE =
|
||||
@ -36,6 +38,12 @@ public class ActionBarPatch {
|
||||
@NonNull
|
||||
private static String buttonType = "";
|
||||
|
||||
public static boolean changeActionBarPosition(boolean original) {
|
||||
return SETTINGS_INITIALIZED
|
||||
? CHANGE_ACTION_BAR_POSITION
|
||||
: original;
|
||||
}
|
||||
|
||||
public static boolean hideActionBarLabel() {
|
||||
return HIDE_ACTION_BUTTON_LABEL;
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ public class Settings extends BaseSettings {
|
||||
|
||||
|
||||
// PreferenceScreen: Action Bar
|
||||
public static final BooleanSetting CHANGE_ACTION_BAR_POSITION = new BooleanSetting("revanced_change_action_bar_position", FALSE, true);
|
||||
public static final BooleanSetting HIDE_ACTION_BUTTON_LIKE_DISLIKE = new BooleanSetting("revanced_hide_action_button_like_dislike", FALSE, true);
|
||||
public static final BooleanSetting HIDE_ACTION_BUTTON_COMMENT = new BooleanSetting("revanced_hide_action_button_comment", FALSE, true);
|
||||
public static final BooleanSetting HIDE_ACTION_BUTTON_ADD_TO_PLAYLIST = new BooleanSetting("revanced_hide_action_button_add_to_playlist", FALSE, true);
|
||||
|
Reference in New Issue
Block a user