Add a dot, just in case

This commit is contained in:
Mario Danic 2017-01-19 13:49:51 +01:00 committed by AndyScherzinger
parent d15bf96378
commit 423252d923
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -450,7 +450,7 @@ public class PreviewImageFragment extends FileFragment {
Log_OC.e(TAG, "File could not be loaded as a bitmap: " + storagePath);
break;
} else {
if (ocFile.getFileName().endsWith("jpg") || ocFile.getFileName().endsWith("jpeg")) {
if (ocFile.getFileName().endsWith(".jpg") || ocFile.getFileName().endsWith(".jpeg")) {
// Rotate image, obeying exif tag.
result = BitmapUtils.rotateImage(result, storagePath);
}