fix(YouTube - Custom branding icon): Restore old splash animation does not apply to dark theme

This commit is contained in:
inotia00
2025-03-15 14:39:13 +09:00
parent 7a209bf28c
commit 81f262ef62
7 changed files with 86 additions and 28 deletions

View File

@ -147,7 +147,7 @@ class ActionButtonRequest private constructor(
} catch (ex: IOException) {
handleConnectionError("Network error", ex)
} catch (ex: Exception) {
Logger.printException({ "sendApplicationRequest failed" }, ex)
Logger.printException({ "sendRequest failed" }, ex)
} finally {
Logger.printDebug { "video: " + videoId + " took: " + (System.currentTimeMillis() - startTime) + "ms" }
}

View File

@ -1,5 +1,7 @@
package app.revanced.extension.youtube.patches.utils;
import app.revanced.extension.shared.utils.Utils;
public class PatchStatus {
public static boolean ImageSearchButton() {
@ -7,6 +9,11 @@ public class PatchStatus {
return false;
}
public static boolean OldSplashAnimation() {
// Replace this with true if the Restore old splash animation (Custom branding icon) succeeds
return false;
}
public static boolean PlayerButtons() {
// Replace this with true if the Hide player buttons patch succeeds
return false;
@ -22,6 +29,12 @@ public class PatchStatus {
return false;
}
public static boolean SplashAnimation() {
// If 'Restore old splash animation' is included and device is running Android 12+,
// YouTube TV splash animations will be disabled by default.
return OldSplashAnimation() && Utils.isSDKAbove(31);
}
public static boolean SponsorBlock() {
// Replace this with true if the SponsorBlock patch succeeds
return false;

View File

@ -147,7 +147,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting CHANGE_START_PAGE_TYPE = new BooleanSetting("revanced_change_start_page_type", FALSE, true,
new ChangeStartPagePatch.ChangeStartPageTypeAvailability());
public static final BooleanSetting DISABLE_AUTO_AUDIO_TRACKS = new BooleanSetting("revanced_disable_auto_audio_tracks", FALSE);
public static final BooleanSetting DISABLE_SPLASH_ANIMATION = new BooleanSetting("revanced_disable_splash_animation", FALSE, true);
public static final BooleanSetting DISABLE_SPLASH_ANIMATION = new BooleanSetting("revanced_disable_splash_animation", PatchStatus.SplashAnimation(), true);
public static final BooleanSetting DISABLE_TRANSLUCENT_STATUS_BAR = new BooleanSetting("revanced_disable_translucent_status_bar", TRUE, true);
public static final BooleanSetting ENABLE_GRADIENT_LOADING_SCREEN = new BooleanSetting("revanced_enable_gradient_loading_screen", FALSE, true);
public static final BooleanSetting HIDE_FLOATING_MICROPHONE = new BooleanSetting("revanced_hide_floating_microphone", TRUE, true);