mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-04 09:45:34 +08:00
Modify merge to YukiHookAPI new usage
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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()
|
||||||
|
@@ -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)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取图标数据
|
* 获取图标数据
|
||||||
|
Reference in New Issue
Block a user