mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Amended onResume() to read CAMERA_ID from intent
This commit is contained in:
parent
e420079ad2
commit
f80645c110
|
@ -218,6 +218,13 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
||||||
cameraManager.setManualFramingRect(width, height);
|
cameraManager.setManualFramingRect(width, height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (intent.hasExtra(Intents.Scan.CAMERA_ID)) {
|
||||||
|
int cameraId = intent.getIntExtra(Intents.Scan.CAMERA_ID, -1);
|
||||||
|
if (cameraId > -1) {
|
||||||
|
cameraManager.setManualCameraId(cameraId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String customPromptMessage = intent.getStringExtra(Intents.Scan.PROMPT_MESSAGE);
|
String customPromptMessage = intent.getStringExtra(Intents.Scan.PROMPT_MESSAGE);
|
||||||
if (customPromptMessage != null) {
|
if (customPromptMessage != null) {
|
||||||
|
|
Loading…
Reference in a new issue