diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt index 99d2f9399..63873e0cc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/databases/GalleryDatabase.kt @@ -8,7 +8,6 @@ import com.simplemobiletools.gallery.pro.interfaces.DirectoryDao import com.simplemobiletools.gallery.pro.interfaces.MediumDao import com.simplemobiletools.gallery.pro.models.Directory import com.simplemobiletools.gallery.pro.models.Medium -import com.simplemobiletools.gallery.pro.objects.MyExecutor @Database(entities = [Directory::class, Medium::class], version = 4) abstract class GalleryDatabase : RoomDatabase() { @@ -26,9 +25,7 @@ abstract class GalleryDatabase : RoomDatabase() { if (db == null) { db = Room.databaseBuilder(context.applicationContext, GalleryDatabase::class.java, "gallery.db") .fallbackToDestructiveMigration() - .setQueryExecutor(MyExecutor.myExecutor) .build() - db!!.openHelper.setWriteAheadLoggingEnabled(true) } } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/objects/MyExecutor.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/objects/MyExecutor.kt deleted file mode 100644 index bc2d57129..000000000 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/objects/MyExecutor.kt +++ /dev/null @@ -1,7 +0,0 @@ -package com.simplemobiletools.gallery.pro.objects - -import java.util.concurrent.Executors - -object MyExecutor { - val myExecutor = Executors.newSingleThreadExecutor() -}