mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-30 15:52:55 +01:00
feat(youtube/spoof-app-version): user selectable version to spoof (#375)
This commit is contained in:
parent
a661dac623
commit
f6f6c93c57
@ -5,10 +5,8 @@ import app.revanced.integrations.settings.SettingsEnum;
|
|||||||
public class SpoofAppVersionPatch {
|
public class SpoofAppVersionPatch {
|
||||||
|
|
||||||
public static String getYouTubeVersionOverride(String version) {
|
public static String getYouTubeVersionOverride(String version) {
|
||||||
if (SettingsEnum.SPOOF_APP_VERSION.getBoolean()){
|
if (SettingsEnum.SPOOF_APP_VERSION.getBoolean()) {
|
||||||
// Override with the most recent version that does not show the new UI player layout.
|
return SettingsEnum.SPOOF_APP_VERSION_TARGET.getString();
|
||||||
// If the new UI shows up for some users, then change this to an older version (such as 17.29.34).
|
|
||||||
return "17.30.34";
|
|
||||||
}
|
}
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
@ -102,6 +102,7 @@ public enum SettingsEnum {
|
|||||||
HIDE_WATCH_IN_VR("revanced_hide_watch_in_vr", BOOLEAN, FALSE, true),
|
HIDE_WATCH_IN_VR("revanced_hide_watch_in_vr", BOOLEAN, FALSE, true),
|
||||||
PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", BOOLEAN, FALSE),
|
PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", BOOLEAN, FALSE),
|
||||||
SPOOF_APP_VERSION("revanced_spoof_app_version", BOOLEAN, FALSE, true, "revanced_spoof_app_version_user_dialog_message"),
|
SPOOF_APP_VERSION("revanced_spoof_app_version", BOOLEAN, FALSE, true, "revanced_spoof_app_version_user_dialog_message"),
|
||||||
|
SPOOF_APP_VERSION_TARGET("revanced_spoof_app_version_target", STRING, "17.30.35", true, parents(SPOOF_APP_VERSION)),
|
||||||
USE_TABLET_MINIPLAYER("revanced_tablet_miniplayer", BOOLEAN, FALSE, true),
|
USE_TABLET_MINIPLAYER("revanced_tablet_miniplayer", BOOLEAN, FALSE, true),
|
||||||
WIDE_SEARCHBAR("revanced_wide_searchbar", BOOLEAN, FALSE, true),
|
WIDE_SEARCHBAR("revanced_wide_searchbar", BOOLEAN, FALSE, true),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user