Add non-standard cache folder option
This commit is contained in:
parent
f2379ef9f8
commit
538e1b4d60
@ -1,6 +1,7 @@
|
|||||||
package tw.nekomimi.nekogram.utils
|
package tw.nekomimi.nekogram.utils
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.os.Environment
|
||||||
import android.os.storage.StorageManager
|
import android.os.storage.StorageManager
|
||||||
import org.telegram.messenger.ApplicationLoader
|
import org.telegram.messenger.ApplicationLoader
|
||||||
import org.telegram.messenger.FileLog
|
import org.telegram.messenger.FileLog
|
||||||
@ -34,6 +35,8 @@ object EnvUtil {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add(Environment.getExternalStoragePublicDirectory("NekoX"))
|
||||||
|
|
||||||
}.map { it.path }.toTypedArray()
|
}.map { it.path }.toTypedArray()
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
|
Loading…
Reference in New Issue
Block a user