summaryrefslogtreecommitdiffstats
path: root/tools/aapt/SourcePos.cpp
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-06-08 15:01:56 -0700
committerChet Haase <chet@google.com>2012-06-08 15:01:56 -0700
commit0061e16e538f800ff995ad05bc21cc7728f160e2 (patch)
tree65797820dabc2ade5030e3da9651d770d9f32980 /tools/aapt/SourcePos.cpp
parent059537e7924a5547849b537bf0e50d2f814b80a5 (diff)
downloadframeworks_base-0061e16e538f800ff995ad05bc21cc7728f160e2.zip
frameworks_base-0061e16e538f800ff995ad05bc21cc7728f160e2.tar.gz
frameworks_base-0061e16e538f800ff995ad05bc21cc7728f160e2.tar.bz2
Don't allow apps to request scrolls to out-of-bounds positions
An app was requesting smooth scrolling to a view position beyond the number of items in the list. This caused our setup logic to execute on every frame, waiting for the target view to be added. This fix clamps the requested target position to the number of items actually in the list. Issue #6572175 Messaging: Sometimes conversation doesn't scroll when focus is brought to the compose field Change-Id: I23707aeb213e67af4297713a03c2f5b446c8e2b6
Diffstat (limited to 'tools/aapt/SourcePos.cpp')
0 files changed, 0 insertions, 0 deletions