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
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>
10 months ago
..
gradle/wrapper ipn: update dependencies (#432) 1 year ago
src ui: display error dialog when saving subnet routes fails (#604) 10 months ago
build.gradle android: bump OSS (#599) 11 months ago
gradle.properties android: bump OSS to 1.71.x; update dependencies (#449) 1 year ago
gradlew update dependencies 2 years ago
gradlew.bat update dependencies 2 years ago
proguard-rules.pro android: modify proguard rules to not mangle Tailscale app symbols 1 year ago