Fix auto save database

This commit is contained in:
J-Jamet
2019-11-18 19:59:50 +01:00
parent b1fa06099c
commit 51d90891ad

View File

@@ -91,7 +91,6 @@ abstract class LockingActivity : StylishActivity() {
mExitLock = false
mReadOnly = ReadOnlyHelper.retrieveReadOnlyFromInstanceStateOrIntent(savedInstanceState, intent)
mAutoSaveEnable = PreferencesUtil.isAutoSaveDatabaseEnabled(this)
mProgressDialogThread = ProgressDialogThread(this)
}
@@ -111,6 +110,7 @@ abstract class LockingActivity : StylishActivity() {
// To refresh when back to normal workflow from selection workflow
mSelectionMode = EntrySelectionHelper.retrieveEntrySelectionModeFromIntent(intent)
mAutoSaveEnable = PreferencesUtil.isAutoSaveDatabaseEnabled(this)
if (mTimeoutEnable) {
// End activity if database not loaded