mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
修正
This commit is contained in:
parent
3715627c07
commit
fa4f074871
|
@ -160,18 +160,20 @@ public class LacertaApplyTagDialog extends DialogFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private CompletableFuture<Void> setAppliedTagList(String documentId) {
|
private CompletableFuture<Void> setAppliedTagList(String documentId) {
|
||||||
return CompletableFuture.runAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
lacertaLibrary.getAppliedTagList(documentId).thenAccept(documentTags -> {
|
lacertaLibrary.getAppliedTagList(documentId).thenAccept(documentTags -> {
|
||||||
this.appliedTags = documentTags;
|
this.appliedTags = documentTags;
|
||||||
});
|
});
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private CompletableFuture<Void> setRegisteredTagList() {
|
private CompletableFuture<Void> setRegisteredTagList() {
|
||||||
return CompletableFuture.runAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
lacertaLibrary.getTagList().thenAccept(documentTags -> {
|
lacertaLibrary.getTagList().thenAccept(documentTags -> {
|
||||||
this.registeredTags = documentTags;
|
this.registeredTags = documentTags;
|
||||||
});
|
});
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user