File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
yukihookapi/src/main/java/com/highcapable/yukihookapi/hook/xposed/prefs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ class YukiHookPrefsBridge private constructor(private var context: Context? = nu
460460 * @return [Boolean] 是否包含
461461 */
462462 fun contains (key : String ) =
463- if (isXposedEnvironment)
463+ if (isXposedEnvironment && isUsingNativeStorage. not () )
464464 currentXsp.contains(key)
465465 else currentSp.contains(key)
466466
@@ -473,7 +473,7 @@ class YukiHookPrefsBridge private constructor(private var context: Context? = nu
473473 * @return [HashMap] 全部类型的键值数组
474474 */
475475 fun all () = hashMapOf<String , Any ?>().apply {
476- if (isXposedEnvironment)
476+ if (isXposedEnvironment && isUsingNativeStorage. not () )
477477 currentXsp.all.forEach { (k, v) -> this [k] = v }
478478 else currentSp.all.forEach { (k, v) -> this [k] = v }
479479 }
You can’t perform that action at this time.
0 commit comments