OSDN Git Service

Fix band select UI issue.
authorKyle Horimoto <khorimoto@google.com>
Wed, 26 Aug 2015 00:12:42 +0000 (17:12 -0700)
committerKyle Horimoto <khorimoto@google.com>
Thu, 27 Aug 2015 22:48:00 +0000 (15:48 -0700)
commitea910a15c289dd4ff7704e922a5d4d9c9f6caa82
treeed50484c90d7e99d00fd4c2cc92d8826a676f675
parent2c80257e142727d63ace5fb68e6729391a6158ce
Fix band select UI issue.

The issue was that scrolling past the top or bottom of the view caused the band
select rectangle to grow in the wrong direction. This was caused by adjusting
the origin of the band select rectangle based on the calculated number of pixels
to scroll instead of the actual number of pixels scrolled. There can be a
discrepancy when the calculated value is higher than the maximum that can be
scrolled (when the view is already scroll almost to the top or bottom of the
view).

Bug: 23081362

Change-Id: I343cdec89260ab0571a792009d0c08585ed41199
packages/DocumentsUI/src/com/android/documentsui/MultiSelectManager.java