From: Damyan Ivanov Date: Wed, 27 Feb 2019 20:27:39 +0000 (+0200) Subject: profile list: attach the touch helper only when editing profiles X-Git-Tag: v0.7~47 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=058f03aa72c457595a829ac0ae1c5806cdcf41ef;p=mobile-ledger.git profile list: attach the touch helper only when editing profiles --- 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 01119d3a..16bc932b 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 @@ -88,7 +88,7 @@ public class ProfilesRecyclerViewAdapter public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { super.onAttachedToRecyclerView(recyclerView); this.recyclerView = recyclerView; - rearrangeHelper.attachToRecyclerView(recyclerView); + if (editingProfiles) rearrangeHelper.attachToRecyclerView(recyclerView); } public boolean editingProfiles() { return this.editingProfiles;