Skip to content

Commit

Permalink
Roll back to Google's barcode scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed May 29, 2017
1 parent 574f80a commit 1e750e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic
case R.id.action_scan_qr_code =>
def installScanner() = {
Toast.makeText(getActivity, R.string.add_profile_scanner_not_installed, Toast.LENGTH_LONG).show()
try startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=tw.com.quickmark"))) catch {
try startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.google.zxing.client.android"))) catch {
case exc: ActivityNotFoundException => exc.printStackTrace()
}
}
Expand Down

3 comments on commit 1e750e4

@Mygod
Copy link
Contributor

@Mygod Mygod commented on 1e750e4 May 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm? Why?

@madeye
Copy link
Contributor Author

@madeye madeye commented on 1e750e4 May 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks this app cannot be found in the play store for some regions, e.g. Iran.

@Mygod
Copy link
Contributor

@Mygod Mygod commented on 1e750e4 May 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay... Maybe should have pushed this to master branch instead.

Please sign in to comment.