You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you provide both normal (light) and dark (night) mode resources for your slash screen, SplashImageTransferTask does not work as expected: it keeps the splash screen for the previous mode. The only workaround is reinstalling the app.
To Reproduce
Add a folder res/drawable-night next to the existing res/drawable folder with a splash.png file.
Toggle the device color schema mode (light / dark).
The splash displayed shows still the "old" splash image.
In case you provide both normal (light) and dark (night) mode resources for your slash screen,
SplashImageTransferTask
does not work as expected: it keeps the splash screen for the previous mode. The only workaround is reinstalling the app.To Reproduce
I think I was able to find the cause of this issue:
https://github.com/GoogleChrome/android-browser-helper/blob/main/androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/splashscreens/SplashImageTransferTask.java#L107 checks the last app update time, and compares it with the persisted time when the splash got last cached (
PREF_LAST_UPDATE_TIME
). That means for the case when you update the color schema of your device, but you do not reinstall the app, it will take the shortcut and use the already cached splash setup.Expected behavior
Whenever the user changes color schema of their device, the proper splash should be rendered.
The text was updated successfully, but these errors were encountered: