Skip to content

Commit 033cde4

Browse files
committed
Enables Resource Loader API for Android 11 and above
1 parent 5807f5a commit 033cde4

File tree

1 file changed

+4
-4
lines changed
  • app/src/main/java/io/github/chsbuffer/revancedxposed

1 file changed

+4
-4
lines changed

app/src/main/java/io/github/chsbuffer/revancedxposed/Helper.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ private val resourceLoader by lazy @RequiresApi(Build.VERSION_CODES.R) {
115115
}
116116

117117
fun Context.addModuleAssets() {
118-
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
119-
// resources.addLoaders(resourceLoader)
120-
// return
121-
// }
118+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
119+
resources.addLoaders(resourceLoader)
120+
return
121+
}
122122

123123
resources.assets.callMethod("addAssetPath", XposedInit.modulePath)
124124
}

0 commit comments

Comments
 (0)