You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale-android/android/src/main/res
Andrea Gottardo 56d7be331e
ui: display error dialog when saving subnet routes fails (#604)
Fixes tailscale/corp#26175

When setting subnet routing settings, for a variety of reasons the Tailscale backend may reject an entered value with a 400 error. Here we handle such errors in a user-facing fashion:

- We display an ErrorDialog with title 'Failed to save' and whatever error message the backend request returned. To do so, we introduce a new initializer for ErrorDialog that accepts a runtime-generated String instead of a fixed string resource.
- We ask the backend to provide an updated value of AdvertiseRoutes whenever the error dialog is dismissed by the user, and set it as the UI state, to ensure consistency between UI and backend upon a failed save.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
1 year ago
..
drawable ui: add ability to advertise Android device as subnet router (#595) 1 year ago
drawable-xhdpi drawables: add disabled notification icon (#384) 2 years ago
mipmap-anydpi-v26 android/ui: add support for themeing launcher icon 2 years ago
mipmap-hdpi android/ui: add support for themeing launcher icon 2 years ago
mipmap-mdpi android/ui: add support for themeing launcher icon 2 years ago
mipmap-xhdpi android/ui: add support for themeing launcher icon 2 years ago
mipmap-xxhdpi android/ui: add support for themeing launcher icon 2 years ago
mipmap-xxxhdpi android/ui: add support for themeing launcher icon 2 years ago
values ui: display error dialog when saving subnet routes fails (#604) 1 year ago
xml mdm: define Hostname syspolicy on Android (#598) 1 year ago