Browse Source

Handle long clicks. Fixes austinhuang0131/barinsta#1117

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
8820779303
  1. 4
      app/build.gradle
  2. 1
      app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java

4
app/build.gradle

@ -146,8 +146,6 @@ dependencies {
implementation "androidx.emoji:emoji:$emoji_compat_version" implementation "androidx.emoji:emoji:$emoji_compat_version"
implementation "androidx.emoji:emoji-appcompat:$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:fresco:2.3.0'
implementation 'com.facebook.fresco:animated-webp:2.3.0' implementation 'com.facebook.fresco:animated-webp:2.3.0'
implementation 'com.facebook.fresco:webpsupport: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 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'org.apache.commons:commons-imaging:1.0-alpha2' 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:uCrop:2.3-native-beta-2'
implementation 'com.github.ammargitham:android-gpuimage:2.1.1-beta4' implementation 'com.github.ammargitham:android-gpuimage:2.1.1-beta4'

1
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) { public void addOnMentionClickListener(final OnMentionClickListener onMentionClickListener) {

Loading…
Cancel
Save