Add non-standard cache folder option

This commit is contained in:
世界 2020-07-19 09:20:57 +08:00
parent f2379ef9f8
commit 538e1b4d60
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package tw.nekomimi.nekogram.utils
import android.content.Context
import android.os.Environment
import android.os.storage.StorageManager
import org.telegram.messenger.ApplicationLoader
import org.telegram.messenger.FileLog
@ -34,6 +35,8 @@ object EnvUtil {
}
add(Environment.getExternalStoragePublicDirectory("NekoX"))
}.map { it.path }.toTypedArray()
@JvmStatic