mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-04-06 07:00:01 +03:00
Fix a crash when long pressing URLs
This commit is contained in:
parent
f9b87f762b
commit
bfa50d19c4
1 changed files with 6 additions and 0 deletions
|
@ -255,6 +255,12 @@ public class SpannableHelper {
|
||||||
if (urlDetails.containsValue(uniqueUrl)) {
|
if (urlDetails.containsValue(uniqueUrl)) {
|
||||||
finalURl = Helper.getKeyByValue(urlDetails, uniqueUrl);
|
finalURl = Helper.getKeyByValue(urlDetails, uniqueUrl);
|
||||||
}
|
}
|
||||||
|
if (finalURl == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (finalURl.startsWith("http://")) {
|
||||||
|
finalURl = finalURl.replace("http://", "https://");
|
||||||
|
}
|
||||||
String finalURl1 = finalURl;
|
String finalURl1 = finalURl;
|
||||||
popupLinksBinding.displayFullLink.setOnClickListener(v -> {
|
popupLinksBinding.displayFullLink.setOnClickListener(v -> {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(mContext, Helper.dialogStyle());
|
AlertDialog.Builder builder = new AlertDialog.Builder(mContext, Helper.dialogStyle());
|
||||||
|
|
Loading…
Reference in a new issue