We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce04670 commit 0682dfdCopy full SHA for 0682dfd
app/src/main/java/org/fcitx/fcitx5/android/updater/Utils.kt
@@ -71,10 +71,9 @@ val httpClient = OkHttpClient()
71
72
val externalDir =
73
//如果是华为机型,硬编码到、/storage/emulated/0/Android/data/org.fcitx.fcitx5.android.updater/files
74
- if (Build.MANUFACTURER == "HUAWEI")
75
- File("/storage/emulated/0/Android/data/" +
76
- UpdaterApplication.context.packageName + "/files")
77
- else UpdaterApplication.context.getExternalFilesDir(null)!!
+// if (Build.MANUFACTURER == "HUAWEI")
+ UpdaterApplication.context.cacheDir!!
+// else UpdaterApplication.context.getExternalFilesDir(null)!!
78
79
inline fun <T, U> Result<T>.flatMap(block: (T) -> Result<U>) =
80
if (isFailure)
0 commit comments