Verified
Status Update
Comments
no...@google.com <no...@google.com>
mo...@google.com <mo...@google.com>
ap...@google.com <ap...@google.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
Description:
Android MotionEvents reports the pressure being applied to the screen by a finger, stylus or other pointer device.
There appears to be no way to get touch pressure in Jetpack Compose without resorting to
pointerInteropFilter
, which the documentation recommends we don't use and which in any case appears to break when inside a LazyItem scope. (pointerInteropFilter
gets very janky, and drops around 90 per cent of events when in something like a LazyColumn.)It would be nice if
androidx.compose.ui.input.pointer
orandroidx.compose.ui.input.pointer.pointerevent
(or indeed anywhere you liked!) contained pressure properties or methods.Use Case:
Any Jetpack Compose drawing or handwriting app could make use of touch pressure. I imagine games could also benefit from it?