@@ -137,6 +137,7 @@ class SystemUILyric : BaseHook() {
137137 }
138138 private var canLoad: Boolean = true
139139 private var isScreenLocked: Boolean = false
140+ private var statusBarShowing: Boolean = true
140141 private var iconSwitch: Boolean = config.iconSwitch
141142
142143 @Volatile
@@ -161,9 +162,6 @@ class SystemUILyric : BaseHook() {
161162 private lateinit var targetView: ViewGroup
162163
163164
164- private var statusBarShowing: Boolean = true
165-
166-
167165 private val lyricView: LyricSwitchView by lazy {
168166 object : LyricSwitchView (context) {
169167 override fun onSizeChanged (w : Int , h : Int , oldw : Int , oldh : Int ) {
@@ -215,8 +213,8 @@ class SystemUILyric : BaseHook() {
215213 // ////////////////////////////Hook//////////////////////////////////////
216214 private var defaultDisplay: Any? = null
217215 private var centralSurfacesImpl: Any? = null
218- private var notificationIconArea: View ? = null
219216 private var statusBatteryContainer: View ? = null
217+ var notificationIconArea: View ? = null
220218
221219 override fun init () {
222220 " Initializing Hook" .log()
@@ -287,6 +285,7 @@ class SystemUILyric : BaseHook() {
287285 }
288286 }
289287
288+ // 限制可见性更改
290289 if (config.limitVisibilityChange) {
291290 moduleRes.getString(R .string.limit_visibility_change).log()
292291 View ::class .java.methodFinder().filterByName(" setVisibility" ).single().createHook {
@@ -321,6 +320,7 @@ class SystemUILyric : BaseHook() {
321320 }
322321 }
323322
323+ // 隐藏通知图标
324324 if (config.hideNotificationIcon) {
325325 moduleRes.getString(R .string.hide_notification_icon).log()
326326 fun HookFactory.hideNoticeIcon (mode : Int ) {
0 commit comments