From 2d71351dddeb33f8bc2619fd2ba280a9f8556195 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Mar 2022 15:43:53 +0100 Subject: [PATCH] Added fail safe --- app/src/main/java/eu/faircode/email/DB.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 88d63652a4..3eb8f43558 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -436,7 +436,12 @@ public abstract class DB extends RoomDatabase { db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`"); db.execSQL("DROP TRIGGER IF EXISTS `attachment_delete`"); } - createTriggers(db); + + try { + createTriggers(db); + } catch (Throwable ex) { + Log.e(ex); + } } }); }