From 058f03aa72c457595a829ac0ae1c5806cdcf41ef Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 27 Feb 2019 22:27:39 +0200 Subject: [PATCH] profile list: attach the touch helper only when editing profiles --- .../mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5