summaryrefslogtreecommitdiff
path: root/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
diff options
context:
space:
mode:
authorHannes Achleitner <hannes.software@gmx.at>2019-11-17 15:49:59 +0300
committerHannes Achleitner <hannes.software@gmx.at>2019-11-17 15:49:59 +0300
commit0fdfbce9fb3285e985bad9971c5f7c0a7a334e7b (patch)
tree8e885a61075cc89b0ce5518035c29819704066c8 /sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
parent9319110de8927fb4771b928eaf795e43999d8529 (diff)
downloadzxing-android-embedded-0fdfbce9fb3285e985bad9971c5f7c0a7a334e7b.tar.xz
some code cleanup
Diffstat (limited to 'sample/src/main/java/example/zxing/ToolbarCaptureActivity.java')
-rw-r--r--sample/src/main/java/example/zxing/ToolbarCaptureActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java b/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
index ce6f2a05..3a970794 100644
--- a/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
+++ b/sample/src/main/java/example/zxing/ToolbarCaptureActivity.java
@@ -20,12 +20,12 @@ public class ToolbarCaptureActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.capture_appcompat);
- Toolbar toolbar = (Toolbar) findViewById(R.id.my_awesome_toolbar);
+ Toolbar toolbar = findViewById(R.id.my_awesome_toolbar);
toolbar.setTitle("Scan Barcode");
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
- barcodeScannerView = (DecoratedBarcodeView)findViewById(R.id.zxing_barcode_scanner);
+ barcodeScannerView = findViewById(R.id.zxing_barcode_scanner);
capture = new CaptureManager(this, barcodeScannerView);
capture.initializeFromIntent(getIntent(), savedInstanceState);