sal0max / currencies

An exchange rates currency converter for Android
GNU General Public License v3.0
227 stars 23 forks source link

OLED Black theme not honored on app startup #27

Open ae5960e8-a6fc-491f-b252-898ecf59af95 opened 2 years ago

ae5960e8-a6fc-491f-b252-898ecf59af95 commented 2 years ago

When you first open the app the app theme is Dark for a split second, even when the theme OLED Black is set. This is only visible on app startup from a non-running state.

sal0max commented 2 years ago

Yeah, I don't think that's something one can do anything about.

This is how it works. There are 2 themes, which both support light/dark:

  1. One features the default light mode and the default dark mode.
  2. The second includes the exact same light mode and the black mode.

The first one is the default theme. It is defined in the AndroidManifest.xml. This one will always be loaded first. Only during onCreate(), the second theme (with black) will be set programmatically, if needed.

There's nothing I can think of, how to set the black theme at an earlier stage. It's by design.

If you got ideas, you're welcome to share. Otherwise, this issue can't be resolved.