mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 08:23:15 +00:00
ボタン追加WIP
This commit is contained in:
parent
bd0a16bec6
commit
eb6a13baba
|
@ -172,6 +172,19 @@ public class ScannerDataManagerStubFragment extends Fragment {
|
||||||
this.documentProcessor.init();
|
this.documentProcessor.init();
|
||||||
Toast.makeText(getActivity(), "documentProcessor initialized", Toast.LENGTH_LONG).show();
|
Toast.makeText(getActivity(), "documentProcessor initialized", Toast.LENGTH_LONG).show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
view.findViewById(R.id.button_add_page).setOnClickListener(v -> {
|
||||||
|
Log.d("ScannerDataManagerStubFragment", "button_add_page clicked");
|
||||||
|
Toast.makeText(getActivity(), "button_add_page clicked", Toast.LENGTH_LONG).show();
|
||||||
|
if (this.documentProcessor == null) {
|
||||||
|
Toast.makeText(getActivity(), "documentProcessor is null", Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (CapturedData capturedData : this.results) {
|
||||||
|
this.documentProcessor.addNewPageToLast(capturedData.getBitmap());
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public DocumentDetail createSampleDocumentDetail() {
|
public DocumentDetail createSampleDocumentDetail() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user