Commit bfa50d19 authored by Thomas's avatar Thomas
Browse files

Fix a crash when long pressing URLs

parent f9b87f76
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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());