Fixed
Status Update
Comments
na...@gmail.com <na...@gmail.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug: b/264018028
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
https://android-review.googlesource.com/2373449
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug:
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
Description
Version used:glance:1.0.0-alpha03
Devices/Android versions reproduced on:
I want to update specific widget after GlanceAppWidgetReceiver#onReceive.
But I can't create AppWidgetId because its internal.
But GlanceAppWidget#update needs GlanceId(AppWidgetId).
Please make AppWidgetId public, or make some create method from appWidgetId(Int) like createGranceId(Int).
Or is there some solution?
I want to make a widget that like displays the weather at one point.
Users can put multiple different widgets.(different point of weather)
The point data saved in Room(database).
1. Call GlanceAppWidgetReceiver#onReceive, intent has extra like "targetWidgetId" : 1.
2. Launch WorkManager to fetch weather data.(Pass the widget id to workmanager)
3. WorkManager fetch weather data by using widgetId.(select weather id from Room by using widget id)
4. WorkManager launch broadcast with weather data and targetWidegetId.
5. Called GlanceAppWidgetReceiver#onReceive, then only update widget that widgetId is 1.
There are multiple widgets like widgetId 1,2,3 and they have different point of weather.
I want to update specific widget by using widget id.