From 57d1c7809c0133f27f424288344ddb4a1e06241b Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 04:31:14 +0900 Subject: [PATCH] Iroiro --- .../scanner/ScannerManagerActivity.java | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 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 8275e88e..994f6943 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 @@ -44,23 +44,30 @@ public class ScannerManagerActivity extends AppCompatActivity { String TAG = "ScannerManagerActivity"; + @Inject LacertaLogger logger; + @Inject Document document; - LacertaLibrary lacertaLibrary; - + @Inject DocumentProcessorFactory documentProcessorFactory; + @Inject LacertaVcsFactory lacertaVcsFactory; +// @Inject +// public ScannerManagerActivity(LacertaLogger logger, Document document, LacertaLibrary lacertaLibrary, DocumentProcessorFactory documentProcessorFactory, LacertaVcsFactory lacertaVcsFactory) { +// this.logger = logger; +// this.document = document; +// this.lacertaLibrary = lacertaLibrary; +// this.documentProcessorFactory = documentProcessorFactory; +// this.lacertaVcsFactory = lacertaVcsFactory; +// } + @Inject - public ScannerManagerActivity(LacertaLogger logger, Document document, LacertaLibrary lacertaLibrary, DocumentProcessorFactory documentProcessorFactory, LacertaVcsFactory lacertaVcsFactory) { - this.logger = logger; - this.document = document; - this.lacertaLibrary = lacertaLibrary; - this.documentProcessorFactory = documentProcessorFactory; - this.lacertaVcsFactory = lacertaVcsFactory; + public ScannerManagerActivity() { + // Required empty public constructor } // Variables @@ -150,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