mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Fix YukiHookModulePrefs instance context maybe set to null
This commit is contained in:
@@ -77,7 +77,7 @@ class YukiHookModulePrefs(private var context: Context? = null) {
|
||||
* @return [YukiHookModulePrefs]
|
||||
*/
|
||||
internal fun instance(context: Context? = null) =
|
||||
instance?.apply { this.context = context } ?: YukiHookModulePrefs(context).apply { instance = this }
|
||||
instance?.apply { if (context != null) this.context = context } ?: YukiHookModulePrefs(context).apply { instance = this }
|
||||
|
||||
/**
|
||||
* 设置全局可读可写
|
||||
|
Reference in New Issue
Block a user