PositiveButtonを押されたときに更新するようにした

This commit is contained in:
r-ca 2024-01-29 01:18:29 +09:00
parent 1e0ba33519
commit 50f00411ca
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -211,7 +211,12 @@ public class ViewerContainerFragment extends Fragment {
.setListener(new LacertaApplyTagDialog.LacertaApplyTagDialogListener() {
@Override
public void onDialogPositiveClick(ArrayList<DocumentTag> appliedTags) {
// 適用
lacertaLibrary.applyTagListToDocument(documentId, appliedTags).thenAccept(aVoid -> {
getActivity().runOnUiThread(() -> {
Toast.makeText(getContext(), "タグを適用しました", Toast.LENGTH_SHORT).show();
lacertaApplyTagDialog.dismiss();
});
});
}
@Override