Skip to content

Commit

Permalink
Fix URI for QR code reader installation
Browse files Browse the repository at this point in the history
So the app doesn't crash if neither Google Play nor F-Droid is installed.
  • Loading branch information
di72nn committed Apr 9, 2020
1 parent a04bbb7 commit 3cbb437
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cbb437

Please sign in to comment.