Skip to content

Commit

Permalink
添加一个log
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowine committed Mar 15, 2024
1 parent c5304d6 commit 52d2b8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/cn/lyric/getter/hook/app/SystemUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ object SystemUi : BaseHook() {
if (!isPlayer || useOwnMusicController) return@after
isPlayer = false
eventTools.cleanLyric()
"clearCurrentMediaNotification".log()
}
}
}
Expand All @@ -62,6 +63,7 @@ object SystemUi : BaseHook() {
if (!isPlayer || useOwnMusicController) return@after
isPlayer = false
eventTools.cleanLyric()
"removePlayer\$default".log()
}
}
}
Expand All @@ -77,6 +79,7 @@ object SystemUi : BaseHook() {
if (playbackState.state == 2) {
isPlayer = false
eventTools.cleanLyric()
"onPlaybackStateChanged".log()
}
}
}
Expand All @@ -90,6 +93,7 @@ object SystemUi : BaseHook() {
if (it.args[0]::class.java.name.contains("statusbar")) {
isPlayer = false
eventTools.cleanLyric()
"unregisterCallback".log()
}

}
Expand All @@ -105,6 +109,7 @@ object SystemUi : BaseHook() {
if (state.state == PlaybackState.STATE_PAUSED) {
isPlayer = false
eventTools.cleanLyric()
"registerCallback".log()
}

}
Expand Down

0 comments on commit 52d2b8f

Please sign in to comment.