aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-12-21 08:06:44 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-12-21 08:06:44 +0000
commit12aa4a104079225f2c2c4ad92a8701a2d4ce16e7 (patch)
tree59306b5da528015260027f80c1d75ba809c18e22 /app/src/main/res
parentfbc47e62261d98c6034ff14f178779d14a214b9e (diff)
downloadinfinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar.gz
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar.bz2
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar.lz
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar.xz
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.tar.zst
infinity-for-reddit-12aa4a104079225f2c2c4ad92a8701a2d4ce16e7.zip
Continue adding support for post filter.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_customize_post_filter.xml30
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/main_preferences.xml3
3 files changed, 32 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_customize_post_filter.xml b/app/src/main/res/layout/activity_customize_post_filter.xml
index 727ebe58..d11daee5 100644
--- a/app/src/main/res/layout/activity_customize_post_filter.xml
+++ b/app/src/main/res/layout/activity_customize_post_filter.xml
@@ -163,6 +163,36 @@
</LinearLayout>
+ <LinearLayout
+ android:id="@+id/post_type_gallery_linear_layout_customize_post_filter_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="4dp"
+ android:paddingBottom="4dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="8dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground">
+
+ <TextView
+ android:id="@+id/post_type_gallery_text_view_customize_post_filter_activity"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:text="@string/post_type_gallery"
+ android:fontFamily="?attr/font_default"
+ android:textSize="?attr/font_default" />
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/post_type_gallery_check_box_customize_post_filter_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical" />
+
+ </LinearLayout>
+
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/title_excludes_strings_text_input_layout_customize_post_filter_activity"
android:layout_width="match_parent"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index baa52b3f..02d9877a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -199,6 +199,7 @@
<string name="bottom_sheet_post_link">Link</string>
<string name="bottom_sheet_post_image">Image</string>
<string name="bottom_sheet_post_video">Video</string>
+ <string name="post_type_gallery">Gallery</string>
<string name="select_from_gallery">Select a picture</string>
<string name="select_again">Select again</string>
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index 9c964d01..666bc186 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -44,11 +44,10 @@
<Preference
app:key="security"
app:title="@string/settings_security_title"
- android:icon="@drawable/ic_security_24dp"
+ app:icon="@drawable/ic_security_24dp"
app:fragment="ml.docilealligator.infinityforreddit.settings.SecurityPreferenceFragment" />
<Preference
- app:key="security"
app:title="@string/settings_data_saving_mode"
app:icon="@drawable/ic_data_saving_mode_24dp"
app:fragment="ml.docilealligator.infinityforreddit.settings.DataSavingModePreferenceFragment" />