Hide quality selector when no images selected.

This commit is contained in:
Cody Henthorne
2021-06-08 12:53:14 -04:00
committed by GitHub
parent 0972d8f1e1
commit 9f2d57493d
3 changed files with 33 additions and 22 deletions

View File

@@ -313,6 +313,10 @@ public class MediaUtil {
return isImageType(contentType) || isVideoType(contentType);
}
public static boolean isImageAndNotGif(@NonNull String contentType) {
return isImageType(contentType) && !isGif(contentType);
}
public static boolean isLongTextType(String contentType) {
return (null != contentType) && contentType.equals(LONG_TEXT);
}