Switching between ShellTabs destroys the Fragment causing unwanted image unloading:
Reloading images upon re-attach was handled in #24023 but we can provide a better UX here and avoid flashes while going back to the initial tab.
Random flashes while scrolling collection view caused by a race condition in image loading:
Glide is race-condition free, but we were setting the Drawable asynchronously in the next loop, this may generate glitches under some scrolling condition in collection view
It's really hard to debug our beloved Glide integration:
I've added proper logging mechanics which can be enabled via adb before running the application:
D Glide : Finished loading BitmapDrawable from MEMORY_CACHE for FontModel{color=#FF000000, glyph='f111', textSize=84.0, typeface=android.graphics.Typeface@898fd220} with size [-2147483648x-2147483648] in 0.202625 ms
V MauiCustomViewTarget: onResourceReady: FontModel{color=#FF000000, glyph='f111', textSize=84.0, typeface=android.graphics.Typeface@898fd220}
Description of Change
This PR aims to solve three issues:
Shell
Tab
s destroys theFragment
causing unwanted image unloading: Reloading images upon re-attach was handled in #24023 but we can provide a better UX here and avoid flashes while going back to the initial tab.Drawable
asynchronously in the next loop, this may generate glitches under some scrolling condition in collection viewGlide
integration: I've added proper logging mechanics which can be enabled viaadb
before running the application:Example logs:
Issues Fixed
14587
25783