mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Iroiro
This commit is contained in:
parent
4158faf453
commit
57d1c7809c
|
@ -44,23 +44,30 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
|
|
||||||
String TAG = "ScannerManagerActivity";
|
String TAG = "ScannerManagerActivity";
|
||||||
|
|
||||||
|
@Inject
|
||||||
LacertaLogger logger;
|
LacertaLogger logger;
|
||||||
|
|
||||||
|
@Inject
|
||||||
Document document;
|
Document document;
|
||||||
|
|
||||||
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;
|
||||||
|
// }
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public ScannerManagerActivity(LacertaLogger logger, Document document, LacertaLibrary lacertaLibrary, DocumentProcessorFactory documentProcessorFactory, LacertaVcsFactory lacertaVcsFactory) {
|
public ScannerManagerActivity() {
|
||||||
this.logger = logger;
|
// Required empty public constructor
|
||||||
this.document = document;
|
|
||||||
this.lacertaLibrary = lacertaLibrary;
|
|
||||||
this.documentProcessorFactory = documentProcessorFactory;
|
|
||||||
this.lacertaVcsFactory = lacertaVcsFactory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -150,15 +157,15 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true);
|
Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
Intent intent = getIntent();
|
// Intent intent = getIntent();
|
||||||
Bundle bundle = intent.getExtras();
|
// Bundle bundle = intent.getExtras();
|
||||||
if (bundle != null) {
|
// if (bundle != null) {
|
||||||
this.single = bundle.getBoolean("single", false);
|
// this.single = bundle.getBoolean("single", false);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (this.single) {
|
// if (this.single) {
|
||||||
documentScanner = documentScannerSingle;
|
// documentScanner = documentScannerSingle;
|
||||||
}
|
// }
|
||||||
documentScanner.startScan();
|
documentScanner.startScan();
|
||||||
// Init
|
// Init
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user