Use .jpg instead of .jpeg

This commit is contained in:
Brion Vibber 2013-05-20 10:48:18 -07:00
parent 772a5280f9
commit 7ab03c5aed

View file

@ -31,6 +31,10 @@ public class StartUploadTask extends AsyncTask<Void, Void, Contribution> {
String title = rawTitle;
String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
// People are used to ".jpg" more than ".jpeg" which the system gives us.
if (extension != null && extension.toLowerCase().equals("jpeg")) {
extension = "jpg";
}
if(extension != null && !title.toLowerCase().endsWith(extension.toLowerCase())) {
title += "." + extension;
}