Modify merge to YukiHookAPI new usage

This commit is contained in:
2023-04-25 06:26:05 +08:00
parent e6fa34d7fd
commit 7db010c9a1
3 changed files with 1 additions and 3 deletions

View File

@@ -45,7 +45,6 @@ object HookEntry : IYukiHookXposedInit {
elements(PRIORITY)
}
isDebug = false
isEnablePrefsBridgeCache = false
}
override fun onHook() = encase {

View File

@@ -735,7 +735,6 @@ object SystemUIHooker : YukiBaseHooker() {
/** 获取可读写状态 */
return prefs.isPreferencesAvailable.also {
isUsingCachingMethod = true
prefs.clearCache()
cachingIconDatas()
if (isRefreshCacheOnly) return@also
refreshStatusBarIcons()

View File

@@ -47,7 +47,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
* 已存储的 JSON 数据
* @return [String]
*/
internal val storageDataJson get() = (context?.prefs() ?: param?.prefs)?.direct()?.get(ConfigData.NOTIFY_ICONS_DATA)
internal val storageDataJson get() = (context?.prefs() ?: param?.prefs)?.get(ConfigData.NOTIFY_ICONS_DATA)
/**
* 获取图标数据