From 1fb37a0317453b7c548e5a5d9665e43d63340cad Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 04:31:38 +0900 Subject: [PATCH] iroiro --- .../scanner/ScannerManagerActivity.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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