mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
コンストラクタインジェクションに変更
This commit is contained in:
parent
beef661e3b
commit
4158faf453
|
@ -44,21 +44,25 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
|
|
||||||
String TAG = "ScannerManagerActivity";
|
String TAG = "ScannerManagerActivity";
|
||||||
|
|
||||||
@Inject
|
|
||||||
LacertaLogger logger;
|
LacertaLogger logger;
|
||||||
|
|
||||||
@Inject
|
|
||||||
Document document;
|
Document document;
|
||||||
|
|
||||||
@Inject
|
|
||||||
LacertaLibrary lacertaLibrary;
|
LacertaLibrary lacertaLibrary;
|
||||||
|
|
||||||
@Inject
|
|
||||||
DocumentProcessorFactory documentProcessorFactory;
|
DocumentProcessorFactory documentProcessorFactory;
|
||||||
|
|
||||||
@Inject
|
|
||||||
LacertaVcsFactory lacertaVcsFactory;
|
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
|
// Variables
|
||||||
private ArrayList<Bitmap> croppedImages = new ArrayList<>();
|
private ArrayList<Bitmap> croppedImages = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -253,6 +257,8 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
finish();
|
finish();
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
dialog.setTitle("追加するドキュメントを選択");
|
||||||
|
dialog.show(getSupportFragmentManager(), "LacertaFilePickerDialog");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateResultView(ArrayList<Bitmap> resultImages) {
|
private void updateResultView(ArrayList<Bitmap> resultImages) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user