Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-11-25 22:37:21 +0300
committerStefan Niedermann <info@niedermann.it>2020-11-25 22:37:21 +0300
commit94ceaf059271660c7cd54919eaf3bd6ed056cc1a (patch)
treeab427094f291c04c262bb1bf301ad090a9ffedbf /app/src/main
parent082737ffc9e2151135ac7dd3033a0b68c5bfecf8 (diff)
Use MarkdownViewer for comment replys
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/it/niedermann/nextcloud/deck/ui/card/comments/CardCommentsFragment.java2
-rw-r--r--app/src/main/res/layout/fragment_card_edit_tab_comments.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/comments/CardCommentsFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/comments/CardCommentsFragment.java
index 946e0d3da..44667bda8 100644
--- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/comments/CardCommentsFragment.java
+++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/comments/CardCommentsFragment.java
@@ -79,7 +79,7 @@ public class CardCommentsFragment extends BrandedFragment implements CommentEdit
if (comment == null) {
binding.replyComment.setVisibility(GONE);
} else {
- binding.replyCommentText.setText(comment.getComment().getMessage());
+ binding.replyCommentText.setMarkdownString(comment.getComment().getMessage());
binding.replyComment.setVisibility(VISIBLE);
// setupMentions(mainViewModel.getAccount(), comment.getComment().getMentions(), binding.replyCommentText);
}
diff --git a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
index cc5fa77b7..4e340c3a2 100644
--- a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
+++ b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
@@ -49,7 +49,7 @@
android:padding="@dimen/spacer_1x"
app:srcCompat="@drawable/ic_reply_grey600_24dp" />
- <TextView
+ <it.niedermann.android.markdown.MarkdownViewerImpl
android:id="@+id/replyCommentText"
android:layout_width="0dp"
android:layout_height="wrap_content"