1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -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:
Apoorv Khatreja 2011-03-24 05:06:50 +08:00 committed by cketti
parent e19162cb86
commit fa5901d404

View File

@ -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;