Skip to content

Commit

Permalink
Cleaned up threading, streamlined API further, added Javadoc comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaumburg committed Dec 11, 2015
1 parent b31f8e8 commit ae2b33f
Show file tree
Hide file tree
Showing 7 changed files with 718 additions and 267 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,13 @@ private void startScan() {
mScanner = new FastBarcodeScanner(this, (TextureView)null);
//mScanner = new FastBarcodeScanner(this, mSurfaceView);
//mScanner.setScanningStateListener(this);
mScanner.setBarcodeListener(this);
}

Button startButton = (Button)findViewById(R.id.start);
Button stopButton = (Button)findViewById(R.id.button3);

startButton.setEnabled(false);
mScanner.StartScan();
mScanner.StartScan(this, null);
stopButton.setEnabled(true);
}

Expand Down Expand Up @@ -149,6 +148,11 @@ public void run() {
}
}

@Override
public void onError(Exception error) {

}


private static final int REQUEST_CAMERA_PERMISSION = 1;
private static final String FRAGMENT_DIALOG = "dialog";
Expand Down
Loading

0 comments on commit ae2b33f

Please sign in to comment.