When apps request layouts while scrolling is in progress, Gallery children can get offset in strange ways. Compensate for this by tracking the last known offset and applying it during layout. Bug 7245853 Change-Id: I9d746ae6bb06918e2d920c58052f72e749a7ffbf