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

Add Android 14 device controls panel #3855

Merged
merged 6 commits into from Sep 13, 2023

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Sep 10, 2023

Summary

Implements #3566

Screenshots

Device controls panel Settings*, light mode Settings*, dark mode
Device controls panel showing the Home Assistant app with a dashboard, instead of the previous built-in style Home Assistant app 'Manage device controls' screen, with two radio buttons: Built-in and Dashboard, allowing the user to choose between them, light mode Home Assistant app 'Manage device controls' screen, with two radio buttons: Built-in and Dashboard, allowing the user to choose between them, dark mode

* The warning about removing previous controls only shows up when changing the setting from built-in to dashboard

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#978

Any other notes

Testing note: transitioning activities like done here works but clearly it wasn't the intended use case and there may be some flickering when the device is locked. Finishing in onPause() instead of immediately after launching seems to reduce it but on quick, repeated launches I could still get some odd behavior (tested on Android 14 beta 5.3).

 - Disable panel by default
 - Add area to controls settings on Android 14 to enable/disable panel
 - Add setting to choose which server and path to use for the panel
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@JBassett JBassett merged commit 4163e14 into home-assistant:master Sep 13, 2023
4 checks passed
@jpelgrom jpelgrom deleted the device-controls-panel branch September 13, 2023 04:45
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.

Support Android 14's new Device Control feature to embed a custom activity
3 participants