Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check controls while locked setting when using panel #4047

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

jpelgrom
Copy link
Member

Summary

When using the device controls panel instead of individual/native controls on Android 14, also check the system setting for using device controls while the device is locked and if not allowed, block the panel (as the frontend doesn't have a read only mode).

I tried requesting unlocking the device when the panel is opened by using KeyguardManager.requestDismissKeyguard to make the experience smoother, but that doesn't play nice with the activity transition used by the app and will result in the user seeing their home screen/last app instead of Home Assistant after unlocking.

Screenshots

Light mode Dark mode
White screen with a lock icon and the text 'Requires unlocked device' Dark grey screen with a lock icon and the text 'Requires unlocked device'

Link to pull request in Documentation repository

n/a

Any other notes

 - When using the device controls panel instead of individual/native controls on Android 14, also check the setting for using controls while the device is locked and if so block the panel (as the frontend doesn't have a read only mode).
@JBassett JBassett merged commit df90280 into home-assistant:master Dec 13, 2023
3 checks passed
@jpelgrom jpelgrom deleted the fix-controls-panel-trivial branch December 13, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants