home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.35k stars 656 forks source link

Add dialog before prompting for Improv permissions #4837

Closed jpelgrom closed 3 days ago

jpelgrom commented 4 days ago

Summary

Based on feedback: add a dialog explaining why the app is about to request permissions for scanning for Improv devices. This should prevent users from denying it because it is not understood. Note that the 2nd prompt may not actually result in a system prompt if it is auto-denied.

Moves some code from onboarding views and bottom sheet dialogs to utility files where it is now used in more places.

Screenshots

Light Dark
Add integration with a bottom dialog sheet titled 'Search devices', light mode Add integration with a bottom dialog sheet titled 'Search devices', dark mode

Link to pull request in Documentation repository

n/a

Any other notes

related to home-assistant/iOS#3104