commit | a94a44dc6f24dc1f63c29ec537c2536332437c93 | [log] [tgz] |
---|---|---|
author | Aurimas Liutikas <aurimas@google.com> | Thu Mar 17 13:55:51 2016 -0700 |
committer | Aurimas Liutikas <aurimas@google.com> | Thu Mar 17 21:42:48 2016 +0000 |
tree | 9036074fbfa263f61ea60321b88736eb7a3bbf49 | |
parent | 833646c4a64b35e255aaf4e85c2fee8bca4d6d96 [diff] |
DO NOT MERGE ANYWHERE. Fix ViewPager margin drawing for cases drawAt < 0. ViewPager drawAt value depends on setCurrentItem and it will go negative for items before current item. Margin drawing bound calculation was doing rounding that was only valid for positive numbers. In a case of drawAt -0.99997 it causes the margin to be between 0 and 0. Bug: 27611657 Change-Id: I89650ecb612f7e124ffe8267bee8e6ed9ef9f8d3 (cherry picked from commit 7f435eb14a778aec816a653871bc0c9112664c72)