Replace link spaces by plus sign

pull/212/head
M66B 2 years ago
parent 532a075b59
commit 9fc626df32

@ -5876,7 +5876,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private boolean onOpenLink(Uri uri, String title, boolean always_confirm) { private boolean onOpenLink(Uri uri, String title, boolean always_confirm) {
Log.i("Opening uri=" + uri + " title=" + title + " always confirm=" + always_confirm); Log.i("Opening uri=" + uri + " title=" + title + " always confirm=" + always_confirm);
uri = Uri.parse(uri.toString().replaceAll("\\s+", "")); uri = Uri.parse(uri.toString().trim().replaceAll("\\s+", "+"));
if (ProtectedContent.isProtectedContent(uri)) { if (ProtectedContent.isProtectedContent(uri)) {
Bundle args = new Bundle(); Bundle args = new Bundle();

Loading…
Cancel
Save