Don't beep/vibrate when choosing item from history

git-svn-id: https://zxing.googlecode.com/svn/trunk@2412 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-09-25 22:23:40 +00:00
parent 5da73140a5
commit 6dd4420bdd

View file

@ -409,9 +409,10 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
lastResult = rawResult; lastResult = rawResult;
ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult); ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);
historyManager.addHistoryItem(rawResult, resultHandler); historyManager.addHistoryItem(rawResult, resultHandler);
beepManager.playBeepSoundAndVibrate();
if (barcode != null) { if (barcode != null) {
// Then not from history, so beep/vibrate and we have an image to draw on
beepManager.playBeepSoundAndVibrate();
drawResultPoints(barcode, rawResult); drawResultPoints(barcode, rawResult);
} }
switch (source) { switch (source) {