commit | b484ccb63d546196c4b39f9a86a9c714006cfdc3 | [log] [tgz] |
---|---|---|
author | Dake Gu <dake@google.com> | Fri Mar 03 17:51:39 2017 -0800 |
committer | Dake Gu <dake@google.com> | Fri Mar 03 18:02:20 2017 -0800 |
tree | a1858994d2202f3a028063b317fceefc9cd25206 | |
parent | d6696c2abea2771acd000c2269cf9113acc6c0a9 [diff] |
leanback: fix bad state of mFocusPosition When smoothScroller starts, the target position is cropped by adapter size, leanback doesn't adjust its internal mFocusPosition, which causes unable to focus to a child in onRequestFocusInDescendants(). The launcher could fix this by double check the position before pass to setSelectionSmooth(). Bug: 32118060 Test: testSmoothScrollerOutRange Change-Id: I5c4ea3b3b4776971f511b0d689e4f9c66bb5ae47