mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 04:07:27 -08:00
Show barcode in bulk message toast
git-svn-id: https://zxing.googlecode.com/svn/trunk@2177 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
4a6daef483
commit
c39eb3a817
|
@ -463,7 +463,9 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
||||||
case NONE:
|
case NONE:
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
if (prefs.getBoolean(PreferencesActivity.KEY_BULK_MODE, false)) {
|
if (prefs.getBoolean(PreferencesActivity.KEY_BULK_MODE, false)) {
|
||||||
Toast.makeText(this, R.string.msg_bulk_mode_scanned, Toast.LENGTH_SHORT).show();
|
String message = getResources().getString(R.string.msg_bulk_mode_scanned)
|
||||||
|
+ " (" + rawResult.getText() + ')';
|
||||||
|
Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
|
||||||
// Wait a moment or else it will scan the same barcode continuously about 3 times
|
// Wait a moment or else it will scan the same barcode continuously about 3 times
|
||||||
restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);
|
restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue