Added support for AVIF

This commit is contained in:
M66B
2021-08-18 19:37:35 +02:00
parent 636c2b4a8f
commit 03e2013ab1
2 changed files with 12 additions and 0 deletions

View File

@@ -427,6 +427,9 @@ public abstract class DB extends RoomDatabase {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
for (String img : ImageHelper.IMAGE_TYPES8)
image.add("'" + img + "'");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
for (String img : ImageHelper.IMAGE_TYPES12)
image.add("'" + img + "'");
String images = TextUtils.join(",", image);
db.execSQL("CREATE TRIGGER IF NOT EXISTS attachment_insert" +