mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-02-22 17:09:44 +02: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)) {
|
||||
finalURl = Helper.getKeyByValue(urlDetails, uniqueUrl);
|
||||
}
|
||||
if (finalURl == null) {
|
||||
return;
|
||||
}
|
||||
if (finalURl.startsWith("http://")) {
|
||||
finalURl = finalURl.replace("http://", "https://");
|
||||
}
|
||||
String finalURl1 = finalURl;
|
||||
popupLinksBinding.displayFullLink.setOnClickListener(v -> {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(mContext, Helper.dialogStyle());
|
||||
|
|
Loading…
Reference in a new issue