diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java index 994f6943..c2c8ed69 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java @@ -157,15 +157,15 @@ public class ScannerManagerActivity extends AppCompatActivity { setSupportActionBar(toolbar); Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true); -// Intent intent = getIntent(); -// Bundle bundle = intent.getExtras(); -// if (bundle != null) { -// this.single = bundle.getBoolean("single", false); -// } -// -// if (this.single) { -// documentScanner = documentScannerSingle; -// } + Intent intent = getIntent(); + Bundle bundle = intent.getExtras(); + if (bundle != null) { + this.single = bundle.getBoolean("single", false); + } + + if (this.single) { + documentScanner = documentScannerSingle; + } documentScanner.startScan(); // Init