Skip to content

Commit 77d3054

Browse files
author
Gerardo Pacheco
authored
Merge pull request #142 from wordpress-mobile/feat/add-more-image-support-types
MediaUtils - Add support for heic and heif image formats
2 parents 4e85ad5 + c0c7e4a commit 77d3054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/MediaUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static boolean isValidImage(String url) {
4343
}
4444
url = url.toLowerCase(Locale.ROOT);
4545
return url.endsWith(".png") || url.endsWith(".jpg") || url.endsWith(".jpeg") || url.endsWith(".gif")
46-
|| url.endsWith(".webp");
46+
|| url.endsWith(".webp") || url.endsWith(".heic") || url.endsWith(".heif");
4747
}
4848

4949
public static boolean isDocument(String url) {

0 commit comments

Comments
 (0)