Skip to content

Commit 07b12e1

Browse files
authored
optimize field position
Removed duplicate declaration of ViewConfigCoordinatorClass.
1 parent 7490247 commit 07b12e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ object SystemUIHooker : YukiBaseHooker() {
115115

116116
/** 原生存在的类 */
117117
private val MediaDataClass by lazyClassOrNull("${PackageName.SYSTEMUI}.media.MediaData")
118+
119+
/** 原生存在的类 */
120+
private val ViewConfigCoordinatorClass by lazyClassOrNull("${PackageName.SYSTEMUI}.statusbar.notification.collection.coordinator.ViewConfigCoordinator")
118121

119122
/** 原生存在的类 - 旧版本不存在 */
120123
private val LegacyNotificationIconAreaControllerImpl by lazyClassOrNull("${PackageName.SYSTEMUI}.statusbar.phone.LegacyNotificationIconAreaControllerImpl")
@@ -142,10 +145,7 @@ object SystemUIHooker : YukiBaseHooker() {
142145

143146
/** ColorOS 存在的类 - 旧版本不存在 */
144147
private val OplusNotificationGroupTemplateWrapperClass by lazyClassOrNull("com.oplus.systemui.notification.row.oplusgroup.OplusNotificationGroupTemplateWrapper")
145-
146-
/** 原生存在的类 */
147-
private val ViewConfigCoordinatorClass by lazyClassOrNull("${PackageName.SYSTEMUI}.statusbar.notification.collection.coordinator.ViewConfigCoordinator")
148-
148+
149149
/** 根据多个版本存在不同的包名相同的类 */
150150
private val OplusNotificationIconAreaControllerClass by lazyClass(
151151
VariousClass(

0 commit comments

Comments
 (0)