Fix back stack

This commit is contained in:
J-Jamet
2020-05-23 15:01:34 +02:00
parent bdb615bcf9
commit 797dc706e2
3 changed files with 7 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ class FileDatabaseSelectActivity : StylishActivity(),
}
// Remove the search info from intent
if (searchInfo != null) {
finish()
intent.removeExtra(KEY_SEARCH_INFO)
}
},
{

View File

@@ -986,7 +986,11 @@ class GroupActivity : LockingActivity(),
} else {
// To restore standard mode
EntrySelectionHelper.removeEntrySelectionModeFromIntent(intent)
moveTaskToBack(true)
// Go to home
startActivity(Intent(Intent.ACTION_MAIN).apply {
addCategory(Intent.CATEGORY_HOME)
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
})
}
}

View File

@@ -269,7 +269,7 @@ open class PasswordActivity : StylishActivity() {
readOnly)
// Remove the search info from intent
if (searchInfo != null) {
finish()
intent.removeExtra(KEY_SEARCH_INFO)
}
},
{