Flickering widgets in AA
Environment
- Android OS version: 14, 15
- Devices affected: Pixel 7, Samsung S24, Samsung S21....
- Maps SDK Version: 11.8.0
Observed behavior and steps to reproduce
This is a strange one, because building locally to phone + build APK lokally everything seems fine. But when released through the playstore the issue appears. However if I then use satellite map, theres no flickering.
- Open up AA with STANDARD style map with widgets and observe they are flickering
Expected behavior
Widgets in AA should not flicker
Notes / preliminary analysis
We tried to downgrade to version 11.6.0 and then there is no issue
Additional links and references
Just noted that if im messing a bit with layers the flickering can also occur locally
The same bug is discussed in another issue. And today, a patch release has been made to fix it. https://github.com/mapbox/mapbox-maps-android/issues/2479#issuecomment-2488921840
Trying with 11.7.3 does not fix the issue
And using 11.6.0 doesnt work on some phones, still flickering widgets.
This appear to be an issue for only the standard and standard satellite maps.... with mapbox streets etc we see no flickering widgets.
Screencast from 11-26-2024 08:53:43 AM.webm
Heres a video of it from a samsung s21 using mapbox version 11.7.3..
However its spread over more releases. We have the same issue on a Pixel 5 & 7 with mapbox version 11.6.0
This is affecting a lot of our users.. Have there been changes to the standard styles that could explain this behaviour?
I'm also experiencing this issue
@mj09 can you please confirm that you see similar issue in our example activity using widgets on problematic devices? If not, please provide the code to reproduce the issue.
@kiryldz Just to be sure, you understand we are talking about Android Auto?
We are adding widgets to the mapSurface as we always have done
fun attachWidgets(mapboxCarMapSurface: MapboxCarMapSurface, showSpeedometer: Boolean) { with(mapboxCarMapSurface) { mapSurface.addWidget(logoWidget) mapSurface.addWidget(speedometerWidget) }
attachWidgets is triggered through onAttached from the MapboxCarMapObserver
override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface) { carMapWidgets.attachWidgets(mapboxCarMapSurface, true) }
Theres nothing new to our approach to add widgets, but lately it appears like the STANDARD style and STANDARD SATELLITE style causes flickering of these widgets. We did go from mapbox version 11.3.0 to 11.8.0 and then back to 11.6.0 and thought it was fixed, but it wasnt. It's not always easy to reproduce, for some strange reason its more evidently after it has been pushed to the PlayStore and we install it directly from there...
This is happening again on version 11.14.0-rc.1 while its fine on 11.6.0... it only occurs when using Style.STANDARD, and sometimes with Style.SATELLITE...
However with the older styles such as TRAFFIC, DARK, DAY etc theres no flickering at all..
Any updates? I have the same issue, though v11.6.0 worked fine.