fix gif NPE

// FREEBIE
This commit is contained in:
Jake McGinty
2015-07-24 14:05:48 -07:00
committed by Moxie Marlinspike
parent a2d63d117b
commit 24e14cbc73
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ public class MediaUtil {
return type;
}
private static boolean isGif(String contentType) {
public static boolean isGif(String contentType) {
return !TextUtils.isEmpty(contentType) && contentType.trim().equals("image/gif");
}