Skip to content

Commit 6bb8bad

Browse files
chore(YouTube Music): Fix fingerprint typo, change hide cast button to default off
1 parent aa1fb41 commit 6bb8bad

File tree

2 files changed

+6
-6
lines changed
  • extensions/music/src/main/java/app/revanced/extension/music/settings
  • patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar

2 files changed

+6
-6
lines changed

extensions/music/src/main/java/app/revanced/extension/music/settings/Settings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Settings extends BaseSettings {
1818
public static final BooleanSetting HIDE_UPGRADE_BUTTON = new BooleanSetting("revanced_music_hide_upgrade_button", TRUE, true);
1919

2020
// General
21-
public static final BooleanSetting HIDE_CAST_BUTTON = new BooleanSetting("revanced_music_hide_cast_button", FALSE, false);
21+
public static final BooleanSetting HIDE_CAST_BUTTON = new BooleanSetting("revanced_music_hide_cast_button", TRUE, false);
2222
public static final BooleanSetting HIDE_CATEGORY_BAR = new BooleanSetting("revanced_music_hide_category_bar", FALSE, true);
2323
public static final BooleanSetting HIDE_NAVIGATION_BAR_HOME_BUTTON = new BooleanSetting("revanced_music_hide_navigation_bar_home_button", FALSE, true);
2424
public static final BooleanSetting HIDE_NAVIGATION_BAR_SAMPLES_BUTTON = new BooleanSetting("revanced_music_hide_navigation_bar_samples_button", FALSE, true);

patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar/Fingerprints.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package app.revanced.patches.music.layout.navigationbar
22

3-
import com.android.tools.smali.dexlib2.Opcode
4-
import com.android.tools.smali.dexlib2.AccessFlags
53
import app.revanced.patcher.fingerprint
4+
import app.revanced.util.containsLiteralInstruction
65
import app.revanced.util.getReference
76
import app.revanced.util.indexOfFirstInstruction
8-
import app.revanced.util.literal
7+
import com.android.tools.smali.dexlib2.AccessFlags
8+
import com.android.tools.smali.dexlib2.Opcode
99
import com.android.tools.smali.dexlib2.iface.Method
1010
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
1111

@@ -23,9 +23,9 @@ internal val tabLayoutTextFingerprint = fingerprint {
2323
Opcode.MOVE_RESULT
2424
)
2525
strings("FEmusic_search")
26-
literal { text1 }
2726
custom { method, _ ->
28-
indexOfGetVisibilityInstruction(method) >= 0
27+
method.containsLiteralInstruction(text1)
28+
&& indexOfGetVisibilityInstruction(method) >= 0
2929
}
3030
}
3131

0 commit comments

Comments
 (0)