Use internal assets directory path
https://github.com/2dust/v2rayNG/issues/6035
This commit is contained in:
1 parent
68f9e66a76
commit
a2be68f7c5
1 file changed
+1
-2
@@ -347,8 +347,7 @@ object Utils {
|
||||
if (context == null) return ""
|
||||
|
||||
return try {
|
||||
context.getExternalFilesDir(AppConfig.DIR_ASSETS)?.absolutePath
|
||||
?: context.getDir(AppConfig.DIR_ASSETS, 0).absolutePath
|
||||
context.getDir(AppConfig.DIR_ASSETS, Context.MODE_PRIVATE).absolutePath
|
||||
} catch (e: Exception) {
|
||||
LogUtil.e(AppConfig.TAG, "Failed to get user asset path", e)
|
||||
""
|
||||
|
||||
Reference in new issue
Block a user