]> git.ktnx.net Git - mobile-ledger.git/commitdiff
disable profile switching while the list is being edited/rearranged
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 15:26:18 +0000 (18:26 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 20:56:43 +0000 (23:56 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java

index 4531e9fad92681096259a3e8e8c4b53f6d07de19..d1ee5fd723f60c8c269fff13b5be8bede2f54f13 100644 (file)
@@ -127,6 +127,7 @@ public class ProfilesRecyclerViewAdapter
         context.startActivity(intent);
     }
     private void onProfileRowClicked(View v) {
+        if (editingProfiles.get()) return;
         MobileLedgerProfile profile = (MobileLedgerProfile) v.getTag();
         if (profile == null)
             throw new IllegalStateException("Profile row without associated profile");