Fix a crash when long pressing URLs

This commit is contained in:
Thomas 2022-11-25 08:29:11 +01:00
parent f9b87f762b
commit bfa50d19c4
1 changed files with 6 additions and 0 deletions

View File

@ -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());