diff --git a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarQRDialogFragment.java b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarQRDialogFragment.java index 5ca56b86382f..57632ee8ca1c 100644 --- a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarQRDialogFragment.java +++ b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarQRDialogFragment.java @@ -217,7 +217,7 @@ public void onDetectedQrCode(Barcode barcode) { if (getActivity() != null) { final String barcodeValue = barcode.displayValue; getActivity().runOnUiThread(() -> { - if (URLUtil.isValidUrl(barcodeValue)) { + if (URLUtil.isNetworkUrl(barcodeValue)) { mLocationBarMediator.loadUrl(barcodeValue, PageTransition.GENERATED, 0); mLocationBarMediator.clearOmniboxFocus(); } else {