Status Update
Comments
ma...@google.com <ma...@google.com>
an...@google.com <an...@google.com>
ap...@google.com <ap...@google.com> #2
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
jo...@gmail.com <jo...@gmail.com> #3
ld...@gmail.com <ld...@gmail.com> #4
jo...@gmail.com <jo...@gmail.com> #5
I have found a solution for this so long as I know how many columns there are, I mainly use GridCells.Adaptive. If the number of columns can be passed to the content block I am good to go.
po...@google.com <po...@google.com> #6
Re
te...@gmail.com <te...@gmail.com> #7
Also doesn't LazyVerticalGrid have a key that you can specify for each item like LazyColumn? Won't scroll position get lost if that's the case?
po...@google.com <po...@google.com> #8
How does this work if we are using GridCells.Adaptive(300.dp)
The number of columns will be calculated according to the available width and then the behaviour will be the same as with GridCells.Fixed
I've tried specifying GridItemSpan(Int.MAX_VALUE) but it doesn't seem to work.
Hmm, what would be the expected behaviour here? The span will just be limited to the number of columns.
doesn't LazyVerticalGrid have a key It will. Note LazyVerticalGrid is still experimental and not feature complete / API stable.
Description