mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 04:32:19 +00:00
fix gif NPE
// FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
a2d63d117b
commit
24e14cbc73
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user