ボタン追加WIP

This commit is contained in:
r-ca 2024-01-08 11:00:55 +09:00
parent bd0a16bec6
commit eb6a13baba
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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() {