mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Modify YukiHookModulePrefs "isXposedEnvironment" to companion object
This commit is contained in:
@@ -68,6 +68,9 @@ class YukiHookModulePrefs private constructor(private var context: Context? = nu
|
||||
|
||||
internal companion object {
|
||||
|
||||
/** 是否为 Xposed 环境 */
|
||||
private val isXposedEnvironment = YukiHookBridge.hasXposedBridge
|
||||
|
||||
/** 当前 [YukiHookModulePrefs] 单例 */
|
||||
private var instance: YukiHookModulePrefs? = null
|
||||
|
||||
@@ -99,9 +102,6 @@ class YukiHookModulePrefs private constructor(private var context: Context? = nu
|
||||
/** 存储名称 - 默认包名 + _preferences */
|
||||
private var prefsName = "${YukiHookBridge.modulePackageName.ifBlank { context?.packageName ?: "" }}_preferences"
|
||||
|
||||
/** 是否为 Xposed 环境 */
|
||||
private val isXposedEnvironment = YukiHookBridge.hasXposedBridge
|
||||
|
||||
/** [XSharedPreferences] 缓存的 [String] 键值数据 */
|
||||
private var xPrefCacheKeyValueStrings = HashMap<String, String>()
|
||||
|
||||
|
Reference in New Issue
Block a user