mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-29 14:14:36 +02:00
fix(YouTube Music - Spoof app version): Show warning when spoofing app version with YT Music 5.xx
This commit is contained in:
parent
43a8073a8f
commit
a235454d80
@ -3,6 +3,7 @@ package app.revanced.extension.music.settings;
|
||||
import static java.lang.Boolean.FALSE;
|
||||
import static java.lang.Boolean.TRUE;
|
||||
import static app.revanced.extension.music.sponsorblock.objects.CategoryBehaviour.SKIP_AUTOMATICALLY;
|
||||
import static app.revanced.extension.shared.utils.StringRef.str;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
@ -241,7 +242,10 @@ public class Settings extends BaseSettings {
|
||||
// region Migration
|
||||
|
||||
// Old spoof versions that no longer work reliably.
|
||||
if (SPOOF_APP_VERSION_TARGET.get().compareTo(SPOOF_APP_VERSION_TARGET.defaultValue) < 0) {
|
||||
String spoofAppVersionTarget = SPOOF_APP_VERSION_TARGET.get();
|
||||
if (spoofAppVersionTarget.compareTo(SPOOF_APP_VERSION_TARGET.defaultValue) < 0) {
|
||||
Utils.showToastShort(str("revanced_spoof_app_version_target_invalid_toast", spoofAppVersionTarget));
|
||||
Utils.showToastShort(str("revanced_extended_reset_to_default_toast"));
|
||||
Logger.printInfo(() -> "Resetting spoof app version target");
|
||||
SPOOF_APP_VERSION_TARGET.resetToDefault();
|
||||
}
|
||||
|
@ -209,6 +209,7 @@ This does not bypass the age restriction. It just accepts it automatically."</st
|
||||
<string name="revanced_spoof_app_version_target_summary">Select the spoof app version target.</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_6_42_55">6.42.55 - Disable real-time lyrics</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_7_16_53">7.16.53 - Restore old action bar</string>
|
||||
<string name="revanced_spoof_app_version_target_invalid_toast">Invalid spoof app version: %s.</string>
|
||||
|
||||
|
||||
<!-- PreferenceScreen: Navigation bar -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user