Adapt caching behaviour for dark/light theme switching #463
Adapt caching behaviour for dark/light theme switching #463khmyznikov wants to merge 5 commits intoGoogleChrome:mainfrom
Conversation
Trying to address this bug
|
@uwolfer is it looks like a fix? |
...main/java/com/google/androidbrowserhelper/trusted/splashscreens/SplashImageTransferTask.java
Outdated
Show resolved
Hide resolved
|
@andreban from my understanding, it solves the issue of wrong caching of different icons for light/dark splash screen. #51 (comment) |
|
Thanks for the update! What I'm making sure I understand is how this PR solves the issue - my understanding is that the bug is caused by only re-transferring the splash image file when the application is updated. But it also needs to be transferred when the theme changes. To solve that, you're adding the theme to the default preferences object, retrieving the value on launch, and ensuring the existing file is only re-used if all the following are true: the file exists, the app hasn't been updated, and the theme wasn't change. Does this sound right? |
|
@andreban yeah that's sounds right 👍 |
Thanks for working on this, @khmyznikov. Code makes sense to me, but I have not tested it. I would suggest that you update the PR title to reflect what we actually have fixed with this change. |
|
@khmyznikov Do you think we can make progress on this PR? |
|
@uwolfer sure, I've updated the branch 👍 |
Trying to address this bug