File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
app/src/main/java/io/github/chsbuffer/revancedxposed/music/misc/settings Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,12 @@ fun MusicHook.SettingsHook() {
6565
6666 ::googleApiActivityFingerprint.hookMethod {
6767 before { param ->
68+ param.invokeOriginalMethod()
6869 val activity = param.thisObject as Activity
6970 val hook = GoogleApiActivityHook .createInstance()
70- // must set theme before original set theme
71+ GoogleApiActivityHook .initialize(hook, activity)
7172 val musicTheme = Utils .getResourceIdentifier(" @style/Theme.YouTubeMusic" , " style" )
7273 activity.setTheme(musicTheme)
73-
74- try {
75- param.invokeOriginalMethod()
76- } catch (e: Throwable ) {
77- // ignored
78- }
79-
80- GoogleApiActivityHook .initialize(hook, activity)
8174 param.result = Unit
8275 }
8376 }
You can’t perform that action at this time.
0 commit comments