Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Devices/Android versions reproduced on: 12,13,14
Android Auto version reproduced on:
In our app, we have a list of chargers, and the data might change frequently based on the BLE state of the charger. We are using a `TabTemplate` that contains a `ListTemplate` within one of its tabs. We subscribe to a listener that receives updates to the charger data. Each time we receive an update, we call `invalidate()` on the `TabTemplate` and pass the updated data to the `ListTemplate`.
The problem we're experiencing is that the list does not refresh immediately; it may take 5-10 seconds to refresh, even though the data has clearly changed multiple times during this period. We also reviewed the `ListTemplate` rendering restrictions, and one point is not entirely clear:
- The template title has not changed, and the `ItemList` structure between the templates has not changed. This means that if the previous template has multiple `ItemList` sections, the new template must have the same number of sections with the same headers. Additionally, the number of rows and the title (not counting spans) of each row must not have changed.
**Questions:**
1. What happens if the `ItemList` changes frequently?
2. Why is it not rendered immediately?
3. What are the limitations if the items in the `ItemList` change frequently?
Please specify the logic behind `ListTemplate` rendering restrictions when the `ItemList` changes frequently.
Best regards,
Andrew