Giter Site home page Giter Site logo

Status bar elements have light theme color when the app launches with theme set to automatic and system wide dark mode is enabled about vectorifydahome HOT 10 CLOSED

enricocid avatar enricocid commented on May 17, 2024 1
Status bar elements have light theme color when the app launches with theme set to automatic and system wide dark mode is enabled

from vectorifydahome.

Comments (10)

enricocid avatar enricocid commented on May 17, 2024 1

Weird, Android 10?

Hope to receive it asap on my mi A2 Lite so I can have a look into this issue (emulator not working anymore on my PC ...). Thanks for reporting 👌😃

from vectorifydahome.

Jnss98b avatar Jnss98b commented on May 17, 2024 1

Yeah Xiaomi is known for breaking a lot of standard Android behaviors. Isn't the Mi A2 Lite an Android One phone though so it runs near stock Android right?

from vectorifydahome.

Jnss98b avatar Jnss98b commented on May 17, 2024

Yeah it's Android 10 on Pixel 4 XL. Does your app's dark theme not follow battery saver setting on Android 9 and below?

from vectorifydahome.

enricocid avatar enricocid commented on May 17, 2024

Yeah it's Android 10 on Pixel 4 XL. Does your app's dark theme not follow battery saver setting on Android 9 and below?

It is following battery saver on <= Android 9, like suggested by Google docs:

else -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM else AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY

For some reasons not depending by me it is not working on some MIUI and Xiaomi devices.
Don't know much about other manufacturers.

from vectorifydahome.

enricocid avatar enricocid commented on May 17, 2024

Yes, it is pure Android with few MIUI integrations (mi services, mi remote, mi feedback).
I've read on the web that other devs are experiencing this issue on Xiaomi devices. Gonna perform a deeper search about this issue :)

from vectorifydahome.

enricocid avatar enricocid commented on May 17, 2024

I tried to change the way I'm checking if night mode is enabled. Could You try if this change fixes the issue?

https://drive.google.com/open?id=17ZjAOiFpjg1uCrHeB4KORM1r5e8Tu2vi

from vectorifydahome.

Jnss98b avatar Jnss98b commented on May 17, 2024

It doesn't. Also, I just notice I some how fooled the home bar to change color too
Screenshot_20200301-110735

from vectorifydahome.

enricocid avatar enricocid commented on May 17, 2024

Strange, I was able to reproduce and fix this issue on the emulator
Could you try this?

https://drive.google.com/open?id=13ivUWr7_j51dgKHjaczt5qcz62CwKwo-

from vectorifydahome.

enricocid avatar enricocid commented on May 17, 2024

Another test apk
https://drive.google.com/open?id=1FHWxkMCLaGipiuL9MTyKQd05JE3cQ0Bb

from vectorifydahome.

Jnss98b avatar Jnss98b commented on May 17, 2024

Yeah so both of them don't have the bug anymore for me. Thanks for the fix!

from vectorifydahome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.