mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 08:32:16 +01:00
Fixed guessing attachments types
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user