mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 06:25:06 -05:00
Fixed issue 873 where JPEG images with the MIME type "image/jpg" failed to open on some Motorola phones.
This commit is contained in:
parent
e19162cb86
commit
fa5901d404
@ -105,7 +105,11 @@ public class AttachmentProvider extends ContentProvider {
|
||||
|
||||
try {
|
||||
final LocalStore localStore = LocalStore.getLocalInstance(account, K9.app);
|
||||
return localStore.getAttachmentType(id);
|
||||
if (localStore.getAttachmentType(id).equals("image/jpg")) {
|
||||
return "image/jpeg";
|
||||
} else {
|
||||
return localStore.getAttachmentType(id);
|
||||
}
|
||||
} catch (MessagingException e) {
|
||||
Log.e(K9.LOG_TAG, "Unable to retrieve LocalStore for " + account, e);
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user