question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Status- and Navigation bars are not being colored anymore on Core 2021.12.0b3

See original GitHub issue

Home Assistant Android version: 2021.10.0-full

Android version: 11

Phone model: Xiaomi Mi 9T Pro

Home Assistant version: 2021.12.0b5

Last working Home Assistant release (if known): 2021.11.5

Description of problem: I just updated to Home Assistant 2021.12.0b5 and realised, that the status and navigation bars are not getting colored anymore. This is especially visible in light mode, where they just stay black instead of getting colored blue.

I did some debugging and figured, that the android app is listening on a json object post with the type config/get which used to be send after the web app loaded. But it is not being send anymore. But when you open the Frontend Settings page, it is loaded, and the status and navigation bar are getting their colors. But of course this is not how it is supposed to be.

I also opened an Issue on the frontend repo, though I’m not really sure, where this post request comes from etc., so I’m not even sure if thats the right place and also nobody is answering issues on the frontend recently it seems like. See: home-assistant/frontend/issues/10823

I figured that the android app team would be interested in this issue and might help reaching out to the people who are able to fix it 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
balloobcommented, Dec 9, 2021

That’s possible. This is how we fetch themes and subscribe to updates: https://github.com/home-assistant/frontend/blob/dev/src/data/ws-themes.ts#L30-L39

1reaction
dshokouhicommented, Dec 9, 2021

So looks like HA core no longer sends config/get upon loading the sidebar as its done in the config screen in this new release. I think we may need to use a websocket call to get the config now. Now that we have websockets in the app we should be able to migrate this.

https://developers.home-assistant.io/docs/api/websocket#fetching-config

Read more comments on GitHub >

github_iconTop Results From Across the Web

barTintColor not working in iOS 15 | Apple Developer Forums
Hi,. When I run the following code in application(_ :didFinishLaunchingWithOptions) in iOS 15, the bar color turns transparent (thus, showing the black ...
Read more >
Can't transparent navigation bar and status bar in android
I am trying to transparent navigation bar and status bar on Android 13 and below version. But getting different result. Here what suggested...
Read more >
2021.12: New configuration menu, the button entity, and ...
A revamped config menu, Z-Wave SmartStart, lovely Area cards, the button entity, local only users, and blueprint scripts.
Read more >
Display content edge-to-edge in your app | Android Developers
Edit the themes.xml file to ensure the color of the navigation bar and, optionally, to set the status bar as transparent and status...
Read more >
How to Change the Color of Status Bar in an Android App?
You can do the same with android:statusBarColor but it will work only in above API Level 21. ColorPrimaryDark for the status bar will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found