Skip to content

Commit

Permalink
fix: attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ornanovitch committed Sep 12, 2024
1 parent 3dbbce9 commit 49d58f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,17 @@ private void setupDescription() {
registerEditorListener(binding.descriptionEditor);
registerEditorListener(binding.descriptionViewer);
} else {
binding.descriptionViewer.setMarkdownString(viewModel.getFullCard().getCard().getDescription());
binding.descriptionEditor.setEnabled(false);
binding.descriptionEditorWrapper.setVisibility(VISIBLE);
binding.descriptionEditorWrapper.setVisibility(GONE);
binding.descriptionViewer.setEnabled(false);
binding.descriptionViewer.setVisibility(VISIBLE);

viewModel.descriptionChangedFromExternal().observe(getViewLifecycleOwner(), description -> {
binding.descriptionViewer.setMarkdownString(description);
});

registerEditorListener(binding.descriptionViewer);
}
}

Expand Down

0 comments on commit 49d58f3

Please sign in to comment.