From: Damyan Ivanov Date: Wed, 27 Feb 2019 20:28:20 +0000 (+0200) Subject: profile list: start drag action immediately upon touch of the handle X-Git-Tag: v0.7~45 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=03416b0efdbc1f864bbfea02455172358d6f69d7;p=mobile-ledger.git profile list: start drag action immediately upon touch of the handle --- 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