Fixed accepting non images files

This commit is contained in:
M66B
2020-08-03 19:48:02 +02:00
parent 31efb7a212
commit 8c5ecbc965
4 changed files with 115 additions and 110 deletions

View File

@@ -287,10 +287,10 @@ public abstract class DB extends RoomDatabase {
private static void createTriggers(@NonNull SupportSQLiteDatabase db) {
List<String> image = new ArrayList<>();
for (String img : EntityAttachment.IMAGE_TYPES)
for (String img : Helper.IMAGE_TYPES)
image.add("'" + img + "'");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
for (String img : EntityAttachment.IMAGE_TYPES8)
for (String img : Helper.IMAGE_TYPES8)
image.add("'" + img + "'");
String images = TextUtils.join(",", image);