Refactor database runnable and prevent activity to be closed during saving

This commit is contained in:
J-Jamet committed 2019-02-28 16:34:25 +01:00
1 parent 2208c67b62
commit 620b1b4f02
9 files changed
+73 -68

No files matched your search

@@ -327,7 +327,7 @@ public class GroupActivity extends LockingActivity
private void openGroup(PwGroup group, boolean isASearch) {
// Check TimeoutHelper
TimeoutHelper.INSTANCE.lockOrResetTimeout(this, () -> {
TimeoutHelper.INSTANCE.checkTimeAndLockIfTimeoutOrResetTimeout(this, () -> {
// Open a group in a new fragment
ListNodesFragment newListNodeFragment = ListNodesFragment.newInstance(group, getReadOnly(), isASearch);
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();