コンストラクタインジェクションに変更

This commit is contained in:
r-ca 2024-01-29 04:26:22 +09:00
parent beef661e3b
commit 4158faf453
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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<Bitmap> croppedImages = new ArrayList<>();
@ -253,6 +257,8 @@ public class ScannerManagerActivity extends AppCompatActivity {
finish();
});
}));
dialog.setTitle("追加するドキュメントを選択");
dialog.show(getSupportFragmentManager(), "LacertaFilePickerDialog");
}
private void updateResultView(ArrayList<Bitmap> resultImages) {