commit | 4f4c3a3978997e552c44726fb2862e4461497384 | [log] [tgz] |
---|---|---|
author | Adam Powell <adamp@google.com> | Thu May 02 15:48:42 2013 -0700 |
committer | Adam Powell <adamp@google.com> | Thu May 02 15:48:42 2013 -0700 |
tree | 20512824aa45f1a605aab77846d06eeb60024a72 | |
parent | 92b0494d041a61ec52cd6a3594f49992f0e2c125 [diff] |
ViewPager optimization/fix for pathological case Prune/don't generate pages to fill the desired full width to either side if the measured width of the pager is 0. This fixes a bug in some apps that would measure their ViewPager at width 0 in an initial pass when placed in some layouts, resulting in too many instantiateItem calls. Change-Id: I87d036814b53756cac49d0a68ca9e45115f6c3b2