mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 10:45:47 +08:00
Fix code style
This commit is contained in:
@@ -318,7 +318,7 @@ object YukiHookAPI {
|
|||||||
fun encase(baseContext: Context?, initiate: PackageParam.() -> Unit) {
|
fun encase(baseContext: Context?, initiate: PackageParam.() -> Unit) {
|
||||||
isLoadedFromBaseContext = true
|
isLoadedFromBaseContext = true
|
||||||
when {
|
when {
|
||||||
YukiHookBridge.hasXposedBridge && baseContext != null -> initiate.invoke(baseContext.packageParam.apply { printSplashLog() })
|
YukiHookBridge.hasXposedBridge && baseContext != null -> initiate(baseContext.packageParam.apply { printSplashLog() })
|
||||||
else -> printNoXposedEnvLog()
|
else -> printNoXposedEnvLog()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -368,7 +368,7 @@ class YukiHookModulePrefs private constructor(private var context: Context? = nu
|
|||||||
* - ❗每次调用都会获取实时的数据 - 不受缓存控制 - 请勿在高并发场景中使用
|
* - ❗每次调用都会获取实时的数据 - 不受缓存控制 - 请勿在高并发场景中使用
|
||||||
* @return [HashMap] 全部类型的键值数组
|
* @return [HashMap] 全部类型的键值数组
|
||||||
*/
|
*/
|
||||||
fun all() = HashMap<String, Any?>().apply {
|
fun all() = hashMapOf<String, Any?>().apply {
|
||||||
if (isXposedEnvironment)
|
if (isXposedEnvironment)
|
||||||
xPref.all.forEach { (k, v) -> this[k] = v }
|
xPref.all.forEach { (k, v) -> this[k] = v }
|
||||||
else sPref.all.forEach { (k, v) -> this[k] = v }
|
else sPref.all.forEach { (k, v) -> this[k] = v }
|
||||||
|
Reference in New Issue
Block a user