Fixed
Status Update
Comments
pa...@google.com <pa...@google.com>
je...@google.com <je...@google.com>
ap...@google.com <ap...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
jo...@jossiwolf.de <jo...@jossiwolf.de> #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
Not sure if this is possible because of beta now, but it would be nice to add the start and end values of a swipe as parameters with default values to
swipeDown
,swipeUp
,swipeLeft
andswipeRight
.I was working on a test where I wanted to test a swipe upwards, but only to a certain point. Using
swipe
instead works, but it's not as readable if you have to calculate that in every test.This is what I had in mind:
Here's an example test of where this would be useful:
What do you think? It doesn't change existing behaviour and is backwards-compatible, but ofc still an API change.