From 3cbb437904c93352ef090c0328346090b3072f2c Mon Sep 17 00:00:00 2001 From: Dmitriy Bogdanov Date: Tue, 7 Apr 2020 13:10:48 +0400 Subject: [PATCH] Fix URI for QR code reader installation So the app doesn't crash if neither Google Play nor F-Droid is installed. --- .../apps/Poche/ui/preferences/ConnectionWizardActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/preferences/ConnectionWizardActivity.java b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/preferences/ConnectionWizardActivity.java index d3c812ba6..a5aa5883a 100644 --- a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/preferences/ConnectionWizardActivity.java +++ b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/preferences/ConnectionWizardActivity.java @@ -226,7 +226,8 @@ private void scanQrCode() { Toast.makeText(this, R.string.connectionWizard_misc_installQrCodeScanner, Toast.LENGTH_LONG).show(); - Uri marketUri = Uri.parse("market://details?id=de.markusfisch.android.binaryeye"); + Uri marketUri = Uri.parse("https://play.google.com/store/apps/details?id=" + + "de.markusfisch.android.binaryeye"); Intent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri); startActivity(marketIntent); } catch(Exception e) {