mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 04:07:27 -08:00
Running underneath the dialer doesn't work. Quit the app if leaving to dial a number.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2282 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
437c5f177f
commit
4a907a6201
|
@ -54,6 +54,10 @@ public final class TelResultHandler extends ResultHandler {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
dialPhoneFromUri(telResult.getTelURI());
|
dialPhoneFromUri(telResult.getTelURI());
|
||||||
|
// When dialer comes up, it allows underlying display activity to continue or something,
|
||||||
|
// but app can't get camera in this state. Avoid issues by just quitting, only in the
|
||||||
|
// case of a phone number
|
||||||
|
getActivity().finish();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
String[] numbers = new String[1];
|
String[] numbers = new String[1];
|
||||||
|
|
Loading…
Reference in a new issue