OSDN Git Service

Properly restore RTL state in HorizontalScrollView
authorAdam Powell <adamp@google.com>
Wed, 3 Jun 2015 00:47:50 +0000 (17:47 -0700)
committerAdam Powell <adamp@google.com>
Wed, 3 Jun 2015 17:56:45 +0000 (10:56 -0700)
commita3aa6d827860a27217b147aca6baf44fe14d1db3
tree0b0eabcdceb61bebc26fd948eea2f0d190bb4ab1
parente25f6587d84c94331b2692e4eb6a2c1cbeb4be5b
Properly restore RTL state in HorizontalScrollView

Fix an incorrect unparceling of the previous saved state in
HorizontalScrollView. Remove an unneeded field in the saved state by
storing scroll offset from start instead of scrollX + isRtl.

Bug 20666194

Change-Id: I1ec45b3e3bd0846b5f659356df7ff94f42e61055
core/java/android/widget/HorizontalScrollView.java