mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
feat(YouTube - Navigation bar components): Remove settings Disable translucent status bar
, Disable light translucent bar
and Disable dark translucent bar
This commit is contained in:
@ -73,33 +73,3 @@ internal val setEnumMapFingerprint = legacyFingerprint(
|
||||
name = "setEnumMapFingerprint",
|
||||
literals = listOf(ytFillBell),
|
||||
)
|
||||
|
||||
internal const val TRANSLUCENT_NAVIGATION_STATUS_BAR_FEATURE_FLAG = 45400535L
|
||||
|
||||
internal val translucentNavigationStatusBarFeatureFlagFingerprint = legacyFingerprint(
|
||||
name = "translucentNavigationStatusBarFeatureFlagFingerprint",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Z",
|
||||
literals = listOf(TRANSLUCENT_NAVIGATION_STATUS_BAR_FEATURE_FLAG)
|
||||
)
|
||||
|
||||
internal const val TRANSLUCENT_NAVIGATION_BUTTONS_FEATURE_FLAG = 45630927L
|
||||
|
||||
internal val translucentNavigationButtonsFeatureFlagFingerprint = legacyFingerprint(
|
||||
name = "translucentNavigationButtonsFeatureFlagFingerprint",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "V",
|
||||
literals = listOf(TRANSLUCENT_NAVIGATION_BUTTONS_FEATURE_FLAG)
|
||||
)
|
||||
|
||||
/**
|
||||
* The device on screen back/home/recent buttons.
|
||||
*/
|
||||
internal const val TRANSLUCENT_NAVIGATION_BUTTONS_SYSTEM_FEATURE_FLAG = 45632194L
|
||||
|
||||
internal val translucentNavigationButtonsSystemFeatureFlagFingerprint = legacyFingerprint(
|
||||
name = "translucentNavigationButtonsSystemFeatureFlagFingerprint",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Z",
|
||||
literals = listOf(TRANSLUCENT_NAVIGATION_BUTTONS_SYSTEM_FEATURE_FLAG)
|
||||
)
|
@ -82,38 +82,6 @@ val navigationBarComponentsPatch = bytecodePatch(
|
||||
"SETTINGS: HIDE_NAVIGATION_COMPONENTS"
|
||||
)
|
||||
|
||||
// region patch for enable translucent navigation bar
|
||||
|
||||
if (is_19_25_or_greater) {
|
||||
arrayOf(
|
||||
Triple(
|
||||
translucentNavigationStatusBarFeatureFlagFingerprint,
|
||||
TRANSLUCENT_NAVIGATION_STATUS_BAR_FEATURE_FLAG,
|
||||
"useTranslucentNavigationStatusBar"
|
||||
),
|
||||
Triple(
|
||||
translucentNavigationButtonsFeatureFlagFingerprint,
|
||||
TRANSLUCENT_NAVIGATION_BUTTONS_FEATURE_FLAG,
|
||||
"useTranslucentNavigationButtons"
|
||||
),
|
||||
Triple(
|
||||
translucentNavigationButtonsSystemFeatureFlagFingerprint,
|
||||
TRANSLUCENT_NAVIGATION_BUTTONS_SYSTEM_FEATURE_FLAG,
|
||||
"useTranslucentNavigationButtons"
|
||||
)
|
||||
).forEach {
|
||||
it.first.injectLiteralInstructionBooleanCall(
|
||||
it.second,
|
||||
"$GENERAL_CLASS_DESCRIPTOR->${it.third}(Z)Z"
|
||||
)
|
||||
}
|
||||
|
||||
settingArray += "SETTINGS: DISABLE_TRANSLUCENT_STATUS_BAR"
|
||||
settingArray += "SETTINGS: TRANSLUCENT_NAVIGATION_BAR"
|
||||
}
|
||||
|
||||
// endregion
|
||||
|
||||
// region patch for enable narrow navigation buttons
|
||||
|
||||
arrayOf(
|
||||
|
Reference in New Issue
Block a user