From 538e1b4d60c9b65b2c98aafce306f262fc3991e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 19 Jul 2020 09:20:57 +0800 Subject: [PATCH] Add non-standard cache folder option --- .../src/main/java/tw/nekomimi/nekogram/utils/EnvUtil.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/EnvUtil.kt b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/EnvUtil.kt index 7261b4fb5..5b8cc62bf 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/EnvUtil.kt +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/EnvUtil.kt @@ -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