diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-09-21 05:54:58 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-09-21 05:54:58 +0000 |
commit | 1108d41eed544d68fa85daca5fdba564753e34ee (patch) | |
tree | 54c9ade944df5df1787a936c1e03f0b731e7f0e5 /app/src | |
parent | 3e66a4fda78109dca680619b5324e0b96cf650c5 (diff) | |
download | infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar.gz infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar.bz2 infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar.lz infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar.xz infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.tar.zst infinity-for-reddit-1108d41eed544d68fa85daca5fdba564753e34ee.zip |
Minor bugs fixed.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/CommentActivity.java | 20 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_comment.xml | 1 |
2 files changed, 10 insertions, 11 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CommentActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CommentActivity.java index b17ba0f4..4aac3cbe 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CommentActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CommentActivity.java @@ -187,8 +187,8 @@ public class CommentActivity extends BaseActivity implements UploadImageEnabledA String parentBodyMarkdown = intent.getStringExtra(EXTRA_COMMENT_PARENT_BODY_MARKDOWN_KEY); String parentBody = intent.getStringExtra(EXTRA_COMMENT_PARENT_BODY_KEY); if (parentBodyMarkdown != null && !parentBodyMarkdown.equals("")) { - binding.contentMarkdownRecyclerView.setVisibility(View.VISIBLE); - binding.contentMarkdownRecyclerView.setNestedScrollingEnabled(false); + binding.commentContentMarkdownView.setVisibility(View.VISIBLE); + binding.commentContentMarkdownView.setNestedScrollingEnabled(false); int linkColor = mCustomThemeWrapper.getLinkColor(); Markwon postBodyMarkwon = Markwon.builder(this) .usePlugin(MarkwonInlineParserPlugin.create(plugin -> { @@ -356,26 +356,26 @@ public class CommentActivity extends BaseActivity implements UploadImageEnabledA @Override protected void applyCustomTheme() { - binding.coordinatorLayout.setBackgroundColor(mCustomThemeWrapper.getBackgroundColor()); - applyAppBarLayoutAndCollapsingToolbarLayoutAndToolbarTheme(binding.appBarLayout, null, toolbar); + binding.commentCoordinatorLayout.setBackgroundColor(mCustomThemeWrapper.getBackgroundColor()); + applyAppBarLayoutAndCollapsingToolbarLayoutAndToolbarTheme(binding.commentAppbarLayout, null, binding.commentToolbar); binding.commentParentTitleTextView.setTextColor(customThemeWrapper.getPostTitleColor()); - binding.divider.setBackgroundColor(mCustomThemeWrapper.getDividerColor()); - binding.commentEditText.setTextColor(mCustomThemeWrapper.getCommentColor()); + binding.commentDivider.setBackgroundColor(mCustomThemeWrapper.getDividerColor()); + binding.commentCommentEditText.setTextColor(mCustomThemeWrapper.getCommentColor()); int secondaryTextColor = mCustomThemeWrapper.getSecondaryTextColor(); - binding.commentEditText.setHintTextColor(secondaryTextColor); + binding.commentCommentEditText.setHintTextColor(secondaryTextColor); if (isReplying) { parentTextColor = mCustomThemeWrapper.getCommentColor(); } else { parentTextColor = mCustomThemeWrapper.getPostContentColor(); } parentSpoilerBackgroundColor = parentTextColor | 0xFF000000; - binding.accountNameTextView.setTextColor(mCustomThemeWrapper.getPrimaryTextColor()); + binding.commentAccountNameTextView.setTextColor(mCustomThemeWrapper.getPrimaryTextColor()); if (typeface != null) { - commentEditText.setTypeface(typeface); + binding.commentCommentEditText.setTypeface(typeface); } if (titleTypeface != null) { - commentParentTitleTextView.setTypeface(titleTypeface); + binding.commentParentTitleTextView.setTypeface(titleTypeface); } } diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml index 4c685720..6a6ffcdc 100644 --- a/app/src/main/res/layout/activity_comment.xml +++ b/app/src/main/res/layout/activity_comment.xml @@ -42,7 +42,6 @@ <TextView android:id="@+id/comment_parent_title_text_view" - android:id="@+id/comment_comment_parent_markwon_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="16dp" |