From 29de8dc4c204487a860a1e8f16ae8f1f4554fa2b Mon Sep 17 00:00:00 2001 From: Don Cung Date: Fri, 5 Aug 2016 17:00:19 -0700 Subject: [PATCH] Allow long press so users can copy and paste. This might cause issues: https://github.com/splitwise/TokenAutoComplete/issues/95 --- .../com/box/androidsdk/share/ui/ChipCollaborationView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/box-share-sdk/src/main/java/com/box/androidsdk/share/ui/ChipCollaborationView.java b/box-share-sdk/src/main/java/com/box/androidsdk/share/ui/ChipCollaborationView.java index 990664012..4a8674469 100644 --- a/box-share-sdk/src/main/java/com/box/androidsdk/share/ui/ChipCollaborationView.java +++ b/box-share-sdk/src/main/java/com/box/androidsdk/share/ui/ChipCollaborationView.java @@ -20,14 +20,18 @@ public class ChipCollaborationView extends TokenCompleteTextView { public ChipCollaborationView(Context context) { super(context); + setLongClickable(true); } public ChipCollaborationView(Context context, AttributeSet attrs) { super(context, attrs); + setLongClickable(true); } public ChipCollaborationView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); + setLongClickable(true); + } @Override @@ -41,7 +45,6 @@ protected View getViewForObject(BoxInvitee person) { TextView tvInitials = (TextView) view.findViewById(R.id.collaborator_initials); SdkUtils.setInitialsThumb(getContext(), tvInitials, person.getName()); - return view; }