From 03416b0efdbc1f864bbfea02455172358d6f69d7 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 27 Feb 2019 22:28:20 +0200 Subject: [PATCH] profile list: start drag action immediately upon touch of the handle --- .../ui/profiles/ProfilesRecyclerViewAdapter.java | 5 +++++ 1 file changed, 5 insertions(+) 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 136f6c91..013fa191 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 @@ -142,6 +142,11 @@ public class ProfilesRecyclerViewAdapter final boolean sameProfile = currentProfile.equals(myProfile); view.setAlpha(sameProfile ? 1 : 0.5f); }); + + holder.mRearrangeHandle.setOnTouchListener((v, event) -> { + rearrangeHelper.startDrag(holder); + return true; + }); return holder; } @Override -- 2.39.5