From 80b31293565c1ae5397ad31776cfec8c4354e510 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Tue, 9 Nov 2021 03:08:01 +0100 Subject: [PATCH] improve background location request flow Instead of directly jumping to the settings screen (which is what the "Request background location access" amounts to) and leaving the user there without a clue what to do, we update the label, icon and button with new text explaining what the user needs to do next. --- .../ExposureNotificationsConfirmActivity.kt | 92 +++++++++++++------ .../res/drawable/ic_outline_location_on.xml | 13 +++ ...xposure_notifications_confirm_activity.xml | 48 ++++++++++ .../src/main/res/values-de/strings.xml | 4 + .../src/main/res/values/strings.xml | 2 + 5 files changed, 133 insertions(+), 26 deletions(-) create mode 100644 play-services-nearby-core-ui/src/main/res/drawable/ic_outline_location_on.xml diff --git a/play-services-nearby-core-ui/src/main/kotlin/org/microg/gms/nearby/core/ui/ExposureNotificationsConfirmActivity.kt b/play-services-nearby-core-ui/src/main/kotlin/org/microg/gms/nearby/core/ui/ExposureNotificationsConfirmActivity.kt index 225a0e02..d2b831a6 100644 --- a/play-services-nearby-core-ui/src/main/kotlin/org/microg/gms/nearby/core/ui/ExposureNotificationsConfirmActivity.kt +++ b/play-services-nearby-core-ui/src/main/kotlin/org/microg/gms/nearby/core/ui/ExposureNotificationsConfirmActivity.kt @@ -82,6 +82,9 @@ class ExposureNotificationsConfirmActivity : AppCompatActivity() { findViewById