diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java index 39d9cf13..40ad1a24 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java @@ -160,18 +160,20 @@ public class LacertaApplyTagDialog extends DialogFragment { } private CompletableFuture setAppliedTagList(String documentId) { - return CompletableFuture.runAsync(() -> { + return CompletableFuture.supplyAsync(() -> { lacertaLibrary.getAppliedTagList(documentId).thenAccept(documentTags -> { this.appliedTags = documentTags; }); + return null; }); } private CompletableFuture setRegisteredTagList() { - return CompletableFuture.runAsync(() -> { + return CompletableFuture.supplyAsync(() -> { lacertaLibrary.getTagList().thenAccept(documentTags -> { this.registeredTags = documentTags; }); + return null; }); }