Fixed
Status Update
Comments
na...@gmail.com <na...@gmail.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit b90079595f33f58fece04026a97faa0d243acdb1
Author: Yuichi Araki <yaraki@google.com>
Date: Wed Sep 18 16:55:49 2019
Change the way to detect mismatch between POJO and query
This fixes cursor mismatch warnings with expandProjection.
Bug: 140759491
Test: QueryMethodProcessorTest
Change-Id: I7659002e5e0d1ef60fc1af2a625c0c36da0664d8
M room/compiler/src/main/kotlin/androidx/room/processor/QueryMethodProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/solver/TypeAdapterStore.kt
M room/compiler/src/main/kotlin/androidx/room/solver/query/result/PojoRowAdapter.kt
M room/compiler/src/test/kotlin/androidx/room/processor/QueryMethodProcessorTest.kt
M room/compiler/src/test/kotlin/androidx/room/testing/TestProcessor.kt
https://android-review.googlesource.com/1123258
https://goto.google.com/android-sha1/b90079595f33f58fece04026a97faa0d243acdb1
Branch: androidx-master-dev
commit b90079595f33f58fece04026a97faa0d243acdb1
Author: Yuichi Araki <yaraki@google.com>
Date: Wed Sep 18 16:55:49 2019
Change the way to detect mismatch between POJO and query
This fixes cursor mismatch warnings with expandProjection.
Bug: 140759491
Test: QueryMethodProcessorTest
Change-Id: I7659002e5e0d1ef60fc1af2a625c0c36da0664d8
M room/compiler/src/main/kotlin/androidx/room/processor/QueryMethodProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/solver/TypeAdapterStore.kt
M room/compiler/src/main/kotlin/androidx/room/solver/query/result/PojoRowAdapter.kt
M room/compiler/src/test/kotlin/androidx/room/processor/QueryMethodProcessorTest.kt
M room/compiler/src/test/kotlin/androidx/room/testing/TestProcessor.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.