mapbox / mapbox/mapbox-maps-android

Android Auto render issues

Open
#2,620 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle: ticketed
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: 15
- Devices affected: OnePlus Nord 4
- Maps SDK Version: 11.6.0

## Observed behavior and steps to reproduce

We have some customers who at times have issues in android auto with render problems + reversed large bitmap.

![Image](https://github.com/user-attachments/assets/a61d300e-a819-4cdd-8e2d-58a83984ebc3)

Unsure how to reproduce since its not a problem everyone is having. Furthermore this also appears to be a somewhat recent issue and was not something we have heard of before

## Expected behavior

This is how its supposed to look like

![Image](https://github.com/user-attachments/assets/5a242cad-81df-47c5-b846-a8c6593a650e)

## Notes / preliminary analysis

The speedometer is a BitmapWidget from com.mapbox.maps.renderer.widget

We add this widget to the map as such

```
fun attachWidgets(mapboxCarMapSurface: MapboxCarMapSurface, showSpeedometer: Boolean) {
this.mapSurface = mapboxCarMapSurface.mapSurface

with(mapboxCarMapSurface) {
mapSurface.addWidget(logoWidget)
if (showSpeedometer) {
mapSurface.addWidget(speedometerWidget)
speedometerWidget.startObservers()
}
}
}
```

which is called when onAttached is triggered from MapboxCarMapObserver

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the BitmapWidget usage in attachWidgets and the onAttached path from MapboxCarMapObserver, using the Android Auto render screenshots and the listed Android 15, OnePlus Nord 4, and Maps SDK 11.6.0 environment. Done means identifying and correcting the intermittent render and reversed-large-bitmap behavior so the widget matches the expected appearance.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.