mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Also use application context with Toast consistently
git-svn-id: https://zxing.googlecode.com/svn/trunk@2525 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
4f93e88db1
commit
0288f08c1c
|
@ -431,7 +431,7 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
|||
if (fromLiveScan && prefs.getBoolean(PreferencesActivity.KEY_BULK_MODE, false)) {
|
||||
String message = getResources().getString(R.string.msg_bulk_mode_scanned)
|
||||
+ " (" + rawResult.getText() + ')';
|
||||
Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();
|
||||
// Wait a moment or else it will scan the same barcode continuously about 3 times
|
||||
restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue