mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
最初の画像を自動で開くように
This commit is contained in:
parent
9042817d63
commit
13efbaf9bb
|
@ -266,7 +266,17 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
dialog.show();
|
dialog.show();
|
||||||
document.getDocument(documentId).thenAccept((documentDetail) -> {
|
document.getDocument(documentId).thenAccept((documentDetail) -> {
|
||||||
DocumentProcessor documentProcessor = documentProcessorFactory.create(documentDetail);
|
DocumentProcessor documentProcessor = documentProcessorFactory.create(documentDetail);
|
||||||
documentProcessor.updatePageAtIndex(croppedImages.get(0), index);
|
if (croppedImages.size() != 1) {
|
||||||
|
logger.error(TAG, "croppedImages.size() != 1");
|
||||||
|
logger.e_code("d8e2b8c9-9b7e-4b7e-9e1e-9e3b8b8b8b8b");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (croppedImages.get(0) == null) {
|
||||||
|
logger.error(TAG, "croppedImages.get(0) == null");
|
||||||
|
logger.e_code("d8e2b8c9-9b7e-4b7e-9e1e-9e3b8b8b8b8b");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// documentProcessor.updatePageAtIndex(croppedImages.get(0), index);
|
||||||
logger.debug(TAG, "documentProcessor.getPageCount(): " + documentProcessor.getPageCount()
|
logger.debug(TAG, "documentProcessor.getPageCount(): " + documentProcessor.getPageCount()
|
||||||
+ ", documentDetail.getPages().size(): " + documentDetail.getPages().size());
|
+ ", documentDetail.getPages().size(): " + documentDetail.getPages().size());
|
||||||
document.updateDocument(documentProcessor.getDocumentDetail()).join();
|
document.updateDocument(documentProcessor.getDocumentDetail()).join();
|
||||||
|
@ -316,6 +326,8 @@ public class ScannerManagerActivity extends AppCompatActivity {
|
||||||
|
|
||||||
resultView.addView(resultImageView);
|
resultView.addView(resultImageView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectedImage.setImageBitmap(resultImages.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user