mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 10:45:47 +08:00
Modify make makeWorldReadable function to inline in YukiHookPrefsBridge
This commit is contained in:
@@ -126,7 +126,7 @@ class YukiHookPrefsBridge private constructor(private var context: Context? = nu
|
|||||||
* @param callback 回调方法体
|
* @param callback 回调方法体
|
||||||
* @return [T]
|
* @return [T]
|
||||||
*/
|
*/
|
||||||
private fun <T> makeWorldReadable(callback: () -> T): T {
|
private inline fun <T> makeWorldReadable(callback: () -> T): T {
|
||||||
val result = callback()
|
val result = callback()
|
||||||
if (isXposedEnvironment.not() && isUsingNewXSharedPreferences.not())
|
if (isXposedEnvironment.not() && isUsingNewXSharedPreferences.not())
|
||||||
runCatching { makeWorldReadable(context, prefsFileName = "${currentPrefsName}.xml") }
|
runCatching { makeWorldReadable(context, prefsFileName = "${currentPrefsName}.xml") }
|
||||||
|
Reference in New Issue
Block a user