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 66b8dc1e..8275e88e 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,21 +44,25 @@ public class ScannerManagerActivity extends AppCompatActivity { String TAG = "ScannerManagerActivity"; - @Inject LacertaLogger logger; - @Inject Document document; - @Inject 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; + } + // Variables private ArrayList croppedImages = new ArrayList<>(); @@ -253,6 +257,8 @@ public class ScannerManagerActivity extends AppCompatActivity { finish(); }); })); + dialog.setTitle("追加するドキュメントを選択"); + dialog.show(getSupportFragmentManager(), "LacertaFilePickerDialog"); } private void updateResultView(ArrayList resultImages) {