Skip to content

Commit c1d6a85

Browse files
committed
Modify merge to YukiHookAPI new usage
1 parent ea77b36 commit c1d6a85

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ object HookEntry : IYukiHookXposedInit {
4242
elements(PRIORITY)
4343
}
4444
isDebug = false
45-
isEnablePrefsBridgeCache = false
4645
}
4746

4847
override fun onHook() = encase {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ object SystemUIHooker : YukiBaseHooker() {
598598
/** 获取可读写状态 */
599599
return prefs.isPreferencesAvailable.also {
600600
isUsingCachingMethod = true
601-
prefs.clearCache()
602601
cachingIconDatas()
603602
if (isRefreshCacheOnly) return@also
604603
refreshStatusBarIcons()

app/src/main/java/com/fankes/coloros/notify/param/IconPackParams.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
4747
* 已存储的 JSON 数据
4848
* @return [String]
4949
*/
50-
internal val storageDataJson get() = (context?.prefs() ?: param?.prefs)?.direct()?.get(ConfigData.NOTIFY_ICONS_DATA)
50+
internal val storageDataJson get() = (context?.prefs() ?: param?.prefs)?.get(ConfigData.NOTIFY_ICONS_DATA)
5151

5252
/**
5353
* 获取图标数据

0 commit comments

Comments
 (0)