Skip to content

Commit

Permalink
updating library sample
Browse files Browse the repository at this point in the history
  • Loading branch information
KingsMentor committed Oct 11, 2016
1 parent 45de971 commit fdbc9e7
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;

import com.google.android.gms.samples.vision.barcodereader.BarcodeCapture;
import com.google.android.gms.samples.vision.barcodereader.BarcodeGraphic;
Expand All @@ -35,7 +34,7 @@
* Main activity demonstrating how to pass extra parameters to an activity that
* reads barcodes.
*/
public class MainActivity extends AppCompatActivity implements View.OnClickListener, BarcodeRetriever {
public class MainActivity extends AppCompatActivity implements BarcodeRetriever {

// use a compound button so either checkbox or switch widgets work.

Expand All @@ -50,16 +49,7 @@ protected void onCreate(Bundle savedInstanceState) {

BarcodeCapture barcodeCapture = (BarcodeCapture) getSupportFragmentManager().findFragmentById(R.id.barcode);
barcodeCapture.setRetrieval(this);

}

/**
* Called when a view has been clicked.
*
* @param v The view that was clicked.
*/
@Override
public void onClick(View v) {
barcodeCapture.onPause();

}

Expand Down

0 comments on commit fdbc9e7

Please sign in to comment.