Modify merge to YukiHookAPI new usage

This commit is contained in:
2023-04-25 06:23:59 +08:00
parent ea77b3631f
commit c1d6a85927
3 changed files with 1 additions and 3 deletions

View File

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

View File

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

View File

@@ -47,7 +47,7 @@ class IconPackParams(private val context: Context? = null, private val param: Pa
* 已存储的 JSON 数据 * 已存储的 JSON 数据
* @return [String] * @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)
/** /**
* 获取图标数据 * 获取图标数据