aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-14 14:26:28 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-14 14:26:28 +0000
commitd31d348788677288b5e334a4e2b33aa775497ae6 (patch)
tree36274f3edb7df38ec33718d207b2ebde42a88ea7 /app/src/main/res
parent4363731a8113bd4c4c929223c76f1ee1e6556c9d (diff)
downloadinfinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar.gz
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar.bz2
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar.lz
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar.xz
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.tar.zst
infinity-for-reddit-d31d348788677288b5e334a4e2b33aa775497ae6.zip
Choose whether receiving post reply notifications or not in PostLinkActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_post_link.xml39
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 39 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_post_link.xml b/app/src/main/res/layout/activity_post_link.xml
index 1e16bada..d92fec7b 100644
--- a/app/src/main/res/layout/activity_post_link.xml
+++ b/app/src/main/res/layout/activity_post_link.xml
@@ -133,6 +133,43 @@
android:layout_height="1dp" />
<LinearLayout
+ android:id="@+id/receive_post_reply_notifications_linear_layout_post_link_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground">
+
+ <TextView
+ android:id="@+id/receive_post_reply_notifications_text_view_post_link_activity"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="16dp"
+ android:text="@string/receive_post_reply_notifications"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/receive_post_reply_notifications_switch_material_post_link_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:checked="true" />
+
+ </LinearLayout>
+
+ <View
+ android:id="@+id/divider_3_post_link_activity"
+ android:layout_width="match_parent"
+ android:layout_height="1dp" />
+
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="0dp"
@@ -163,7 +200,7 @@
</LinearLayout>
<View
- android:id="@+id/divider_3_post_link_activity"
+ android:id="@+id/divider_4_post_link_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index cc3c91c9..8fafbd53 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -285,7 +285,7 @@
<string name="posting_video">Posting Video</string>
<string name="posting_image">Posting Image</string>
- <string name="please_wait">Please wait.</string>
+ <string name="please_wait">Please wait</string>
<string name="add_account">Add account</string>
<string name="anonymous_account">Anonymous</string>