ui:preview Use equalsIgnoreCase() for svg mime check.

This commit is contained in:
eho 2018-05-20 19:51:25 +02:00
parent 295bd2f0f1
commit 1ce4c51ed2

View file

@ -684,7 +684,7 @@ public class PreviewImageFragment extends FileFragment {
} else {
imageView.setImageBitmap(bitmap);
}
} else if (result.ocFile.getMimetype().equals("image/svg+xml")) {
} else if (result.ocFile.getMimetype().equalsIgnoreCase("image/svg+xml")) {
imageView.setImageDrawable(result.drawable);
} else if (result.ocFile.getMimetype().equalsIgnoreCase("image/gif")) {
GifDrawable gif;