Fixed guessing attachments types

This commit is contained in:
M66B
2018-09-20 15:03:07 +00:00
parent 80a4e5ce1b
commit 679556271f
3 changed files with 14 additions and 7 deletions

View File

@@ -205,6 +205,15 @@ public class Helper {
}
}
static String getExtension(String filename) {
if (filename == null)
return null;
int index = filename.lastIndexOf(".");
if (index < 0)
return null;
return filename.substring(index + 1);
}
static String refreshToken(Context context, String type, String name, String current) {
try {
AccountManager am = AccountManager.get(context);