Skip to content

Commit

Permalink
+ comments, >=0
Browse files Browse the repository at this point in the history
  • Loading branch information
slepmog committed May 1, 2014
1 parent 01bbe8f commit 3785539
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public final AlertDialog initiateScan() {
/**
* Initiates a scan for all known barcode types with the specified camera.
*
* @param cameraId camera ID of the camera to use
* @param cameraId camera ID of the camera to use. A negative value means "no preference".
* @return the {@link AlertDialog} that was shown to the user prompting them to download the app
* if a prompt was needed, or null otherwise.
*/
Expand All @@ -288,7 +288,7 @@ public final AlertDialog initiateScan(Collection<String> desiredBarcodeFormats)
* like {@link #PRODUCT_CODE_TYPES} for example.
*
* @param desiredBarcodeFormats names of {@code BarcodeFormat}s to scan for
* @param cameraId camera ID of the camera to use
* @param cameraId camera ID of the camera to use. A negative value means "no preference".
* @return the {@link AlertDialog} that was shown to the user prompting them to download the app
* if a prompt was needed, or null otherwise
*/
Expand All @@ -310,7 +310,7 @@ public final AlertDialog initiateScan(Collection<String> desiredBarcodeFormats,
}

// check requested camera ID
if (cameraId > -1) {
if (cameraId >= 0) {
intentScan.putExtra("SCAN_CAMERA_ID", cameraId);
}

Expand Down

0 comments on commit 3785539

Please sign in to comment.