Fix wrong path in attach alert

This commit is contained in:
NekoInverter 2020-05-30 18:43:06 +08:00 committed by 世界
parent e8841eb156
commit da93f4a809
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.LinearSmoothScroller;
import androidx.recyclerview.widget.RecyclerView;
import tw.nekomimi.nekogram.utils.EnvUtil;
public class ChatAttachAlertDocumentLayout extends ChatAttachAlert.AttachAlertLayout {
public interface DocumentSelectActivityDelegate {
@ -973,7 +975,7 @@ public class ChatAttachAlertDocumentLayout extends ChatAttachAlert.AttachAlertLa
ListItem fs;
try {
File telegramPath = ApplicationLoader.applicationContext.getExternalFilesDir(null);
File telegramPath = EnvUtil.getTelegramPath();
if (telegramPath.exists()) {
fs = new ListItem();
fs.title = "Telegram";