diff --git a/app/src/main/java/de/dreier/mytargets/app/ApplicationInstance.kt b/app/src/main/java/de/dreier/mytargets/app/ApplicationInstance.kt index 6c0f616b5..d36031d48 100644 --- a/app/src/main/java/de/dreier/mytargets/app/ApplicationInstance.kt +++ b/app/src/main/java/de/dreier/mytargets/app/ApplicationInstance.kt @@ -116,6 +116,7 @@ class ApplicationInstance : SharedApplicationInstance() { ) .allowMainThreadQueries() .addCallback(RoomCreationCallback) + .setJournalMode(RoomDatabase.JournalMode.TRUNCATE) .addMigrations( Migration2, Migration3, Migration4, Migration5, Migration6, Migration7, diff --git a/app/src/main/java/de/dreier/mytargets/features/statistics/DispersionPatternActivity.kt b/app/src/main/java/de/dreier/mytargets/features/statistics/DispersionPatternActivity.kt index 72d6bb0bb..6f5d87f84 100644 --- a/app/src/main/java/de/dreier/mytargets/features/statistics/DispersionPatternActivity.kt +++ b/app/src/main/java/de/dreier/mytargets/features/statistics/DispersionPatternActivity.kt @@ -15,7 +15,6 @@ package de.dreier.mytargets.features.statistics -import android.content.Context import android.content.Intent import android.databinding.DataBindingUtil import android.os.Build