From 8cf4bb9a1692ca5c8c543f4f1ba09d3eb5adcf50 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 23 Nov 2018 14:22:15 +0100 Subject: [PATCH] Set database to truncate mode --- app/src/main/java/de/dreier/mytargets/app/ApplicationInstance.kt | 1 + .../mytargets/features/statistics/DispersionPatternActivity.kt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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