File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 11package app.revanced.patches.music.layout.navigationbar
22
3- import com.android.tools.smali.dexlib2.Opcode
4- import com.android.tools.smali.dexlib2.AccessFlags
53import app.revanced.patcher.fingerprint
4+ import app.revanced.util.containsLiteralInstruction
65import app.revanced.util.getReference
76import 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
99import com.android.tools.smali.dexlib2.iface.Method
1010import 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
You can’t perform that action at this time.
0 commit comments