From 88207793035edfb6e19043b5ea5df3b3f91d63aa Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sun, 25 Apr 2021 20:58:02 +0900 Subject: [PATCH] Handle long clicks. Fixes austinhuang0131/barinsta#1117 --- app/build.gradle | 4 ++-- .../java/awais/instagrabber/customviews/RamboTextViewV2.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1259caa3..c9dd19bf 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -146,8 +146,6 @@ dependencies { implementation "androidx.emoji:emoji:$emoji_compat_version" implementation "androidx.emoji:emoji-appcompat:$emoji_compat_version" - implementation 'me.austinhuang:AutoLinkTextViewV2:-SNAPSHOT' - implementation 'com.facebook.fresco:fresco:2.3.0' implementation 'com.facebook.fresco:animated-webp:2.3.0' implementation 'com.facebook.fresco:webpsupport:2.3.0' @@ -157,6 +155,8 @@ dependencies { implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'org.apache.commons:commons-imaging:1.0-alpha2' + + implementation 'com.github.ammargitham:AutoLinkTextViewV2:v3.1.0' implementation 'com.github.ammargitham:uCrop:2.3-native-beta-2' implementation 'com.github.ammargitham:android-gpuimage:2.1.1-beta4' diff --git a/app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java b/app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java index 14f09798..30c3646f 100644 --- a/app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java +++ b/app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java @@ -57,6 +57,7 @@ public class RamboTextViewV2 extends AutoLinkTextView { } } }); + onAutoLinkLongClick(autoLinkItem -> {}); } public void addOnMentionClickListener(final OnMentionClickListener onMentionClickListener) {