commit | 51f2919815c6543c3582386d70f00aa3d31adda5 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Wed Sep 11 08:57:03 2019 -0700 |
committer | Tony Wickham <twickham@google.com> | Wed Sep 11 14:41:52 2019 -0700 |
tree | 0ea4fde4d75c88d6589812108fb08bc9a7f71001 | |
parent | d81f60f32472b2f863b336ba4610fb0ee95fe56f [diff] |
Replace OnGlobalLayoutListener with StateListener to update predictions Previously we were using OnGlobalLayoutListener, which is only called when AllAppsContainerView or a child is re-laid out or visibility changes to or from GONE. Since we no longer relayout when already scrolled to the top, we need a better hook to check whether all apps has changed visibility for the purpose of updating predictions. Bug: 140823188 Change-Id: I7c4a0d94c529eb86b55729c75843c8b0bd673d8c