diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-11-26 16:49:58 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-11-29 17:28:10 +0300 |
commit | ae49c8f3777b0a58b65f23e9b2014130dfeae6e1 (patch) | |
tree | 59aaba0c777becb08bd526e62c47be0a616b41c0 /app/src/main/res/layout | |
parent | 39be2d5049b6d65c764af45a7d969fb57ee466d5 (diff) |
#1165 Fix onError callback in PushNotificationActivity
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_push_notification.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_push_notification.xml b/app/src/main/res/layout/activity_push_notification.xml index 21d543db3..6bda0323a 100644 --- a/app/src/main/res/layout/activity_push_notification.xml +++ b/app/src/main/res/layout/activity_push_notification.xml @@ -82,4 +82,34 @@ android:text="@string/open_in_browser" /> </LinearLayout> </ScrollView> + + <ScrollView + android:id="@+id/errorWrapper" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + android:padding="@dimen/spacer_2x"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:orientation="vertical"> + + <TextView + android:id="@+id/errorExplanation" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:autoLink="web" + tools:text="@string/push_notification_link_empty"/> + + <com.google.android.material.button.MaterialButton + android:id="@+id/showError" + style="@style/Widget.MaterialComponents.Button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacer_2x" + android:text="@string/show_error" /> + </LinearLayout> + </ScrollView> </LinearLayout>
\ No newline at end of file |