Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Sep 20, 2017
1 parent 9c1500a commit e3d3e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class MainActivity extends AppCompatActivity {
setContentView(R.layout.activity_main);
CodeScannerView scannerView = findViewById(R.id.scanner_view);
mCodeScanner = new CodeScanner(this, scannerView);
mCodeScanner.setAutoFocusEnabled(true);
mCodeScanner.setFlashEnabled(false);
mCodeScanner.setAutoFocusEnabled(true); // true by default
mCodeScanner.setFlashEnabled(false); // false by default
mCodeScanner.setDecodeCallback(new DecodeCallback() {
@Override
public void onDecoded(@NonNull final Result result) {
Expand Down

0 comments on commit e3d3e2f

Please sign in to comment.