summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-10-29 16:10:38 +0100
committerGitHub <noreply@github.com>2023-10-29 16:10:38 +0100
commit4931734d94a30d4b9b83c13a7869fc84bbf22a11 (patch)
tree2c5ca755f771abda555b3ca12523ffda96639354 /app/src/main/res
parent8a011badd3253dde83769ec9dc3be3129528e4b7 (diff)
downloadAntennaPod-4931734d94a30d4b9b83c13a7869fc84bbf22a11.zip
Allow hiding notification permission nag (#6730)
- Support showing most error messages as a snackbar - Ask for notification permission when enabling episode notifications - Clarify what we use notifications for
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/home_section_notification.xml43
1 files changed, 30 insertions, 13 deletions
diff --git a/app/src/main/res/layout/home_section_notification.xml b/app/src/main/res/layout/home_section_notification.xml
index 7e2182176..4d250b5a8 100644
--- a/app/src/main/res/layout/home_section_notification.xml
+++ b/app/src/main/res/layout/home_section_notification.xml
@@ -24,23 +24,40 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
+ android:layout_margin="16dp"
android:text="@string/notification_permission_text" />
- <Button
- android:id="@+id/allowButton"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="right"
- android:text="@android:string/ok" />
+ android:orientation="horizontal">
- <Button
- android:id="@+id/openSettingsButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="right"
- android:visibility="gone"
- android:text="@string/open_settings" />
+ <Button
+ android:id="@+id/denyButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/deny_label"
+ style="@style/Widget.MaterialComponents.Button.TextButton" />
+
+ <View
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" />
+
+ <Button
+ android:id="@+id/openSettingsButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone"
+ android:text="@string/open_settings" />
+
+ <Button
+ android:id="@+id/allowButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@android:string/ok" />
+
+ </LinearLayout>
</LinearLayout>