openfoodfacts / openfoodfacts-androidapp

(Legacy) Native version of Open Food Facts on Android - Coders & Decoders welcome 🤳🥫
https://android.openfoodfacts.org
Apache License 2.0
773 stars 446 forks source link

App crashes if a product link doesn't have an "HTTP" part to it #1201

Closed huzaifaiftikhar closed 6 years ago

huzaifaiftikhar commented 6 years ago

Checklist

Summary: If there is a URL entered by the user and somehow he has not written the "HTTP" or the "HTTPS" part of the URL and simply wrote the website starting with "WWW" then for such cases the app crashes with an error "No Activity found to handle Intent".

Steps to reproduce: Open the link of any product from the app where the HTTP or HTTPS part is missing. For example, open this product from the app and click on its URL provided.

Expected behavior: The link should have been opened.

Observed behavior: The app crashed.

Screenshots: videotogif_2018 03 12_01 04 00

huzaifaiftikhar commented 6 years ago

I am working on this issue.