From: Damyan Ivanov Date: Fri, 19 Apr 2019 15:26:18 +0000 (+0300) Subject: disable profile switching while the list is being edited/rearranged X-Git-Tag: v0.10.0~92 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a02949cb1f740a4ed13355b5c58e8823fdd06439;p=mobile-ledger.git disable profile switching while the list is being edited/rearranged --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java index 4531e9fa..d1ee5fd7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java @@ -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");