diff options
| author | Hannes Achleitner <hannes.software@gmx.at> | 2019-11-17 15:49:59 +0300 |
|---|---|---|
| committer | Hannes Achleitner <hannes.software@gmx.at> | 2019-11-17 15:49:59 +0300 |
| commit | 0fdfbce9fb3285e985bad9971c5f7c0a7a334e7b (patch) | |
| tree | 8e885a61075cc89b0ce5518035c29819704066c8 /sample/src/main/java/example/zxing/CustomScannerActivity.java | |
| parent | 9319110de8927fb4771b928eaf795e43999d8529 (diff) | |
| download | zxing-android-embedded-0fdfbce9fb3285e985bad9971c5f7c0a7a334e7b.tar.xz | |
some code cleanup
Diffstat (limited to 'sample/src/main/java/example/zxing/CustomScannerActivity.java')
| -rw-r--r-- | sample/src/main/java/example/zxing/CustomScannerActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/src/main/java/example/zxing/CustomScannerActivity.java b/sample/src/main/java/example/zxing/CustomScannerActivity.java index 12840733..70f2df9b 100644 --- a/sample/src/main/java/example/zxing/CustomScannerActivity.java +++ b/sample/src/main/java/example/zxing/CustomScannerActivity.java @@ -30,12 +30,12 @@ public class CustomScannerActivity extends Activity implements super.onCreate(savedInstanceState); setContentView(R.layout.activity_custom_scanner); - barcodeScannerView = (DecoratedBarcodeView)findViewById(R.id.zxing_barcode_scanner); + barcodeScannerView = findViewById(R.id.zxing_barcode_scanner); barcodeScannerView.setTorchListener(this); - switchFlashlightButton = (Button)findViewById(R.id.switch_flashlight); + switchFlashlightButton = findViewById(R.id.switch_flashlight); - viewfinderView = (ViewfinderView) findViewById(R.id.zxing_viewfinder_view); + viewfinderView = findViewById(R.id.zxing_viewfinder_view); // if the device does not have flashlight in its camera, // then remove the switch flashlight button... |
