aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2022-02-05 07:19:18 +0000
committerAlex Ning <chineseperson5@gmail.com>2022-02-05 07:19:18 +0000
commitc265bbecf9b613285de56cd0643ec94e364d4f5e (patch)
tree6a53384e3c8e29270ba8350c701c13af2df3bc24 /app/src/main/res
parent101525ae334b55cfcad887a64811c3b31ac8753a (diff)
downloadinfinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar.gz
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar.bz2
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar.lz
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar.xz
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.tar.zst
infinity-for-reddit-c265bbecf9b613285de56cd0643ec94e364d4f5e.zip
New option: Settings->Interface->Comment->Hide Author Avatar. Fix Application ClassCastException in MainActivity. Don't show the number of child comments in expanded comments.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_comment_fully_collapsed.xml3
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/comment_preferences.xml5
3 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/res/layout/item_comment_fully_collapsed.xml b/app/src/main/res/layout/item_comment_fully_collapsed.xml
index 5bda1d1f..4e0a0d32 100644
--- a/app/src/main/res/layout/item_comment_fully_collapsed.xml
+++ b/app/src/main/res/layout/item_comment_fully_collapsed.xml
@@ -22,7 +22,8 @@
android:id="@+id/author_icon_image_view_item_comment_fully_collapsed"
android:layout_width="24dp"
android:layout_height="24dp"
- android:layout_gravity="center_vertical" />
+ android:layout_gravity="center_vertical"
+ android:visibility="gone" />
<TextView
android:id="@+id/user_name_text_view_item_comment_fully_collapsed"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 167b02eb..bcb4d083 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -629,6 +629,7 @@
<string name="settings_hide_comment_awards_title">Hide Comment Awards</string>
<string name="settings_show_fewer_toolbar_options_threshold_title">Show Fewer Toolbar Options Starting From</string>
<string name="settings_show_fewer_toolbar_options_threshold_summary">Level %1$d</string>
+ <string name="settings_show_author_avatar_title">Hide Author Avatar</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/comment_preferences.xml b/app/src/main/res/xml/comment_preferences.xml
index b7736545..76738f73 100644
--- a/app/src/main/res/xml/comment_preferences.xml
+++ b/app/src/main/res/xml/comment_preferences.xml
@@ -34,6 +34,11 @@
<ml.docilealligator.infinityforreddit.customviews.CustomFontSwitchPreference
app:defaultValue="false"
+ app:key="show_author_avatar"
+ android:title="@string/settings_show_author_avatar_title" />
+
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontSwitchPreference
+ app:defaultValue="false"
app:key="hide_comment_awards"
android:title="@string/settings_hide_comment_awards_title" />