commit | 8e05aab504e9bd10adac3bb0814637438dd9fb7e | [log] [tgz] |
---|---|---|
author | Joshua Tsuji <tsuji@google.com> | Thu Aug 22 14:57:50 2019 -0400 |
committer | Joshua Tsuji <tsuji@google.com> | Fri Aug 23 13:58:54 2019 -0400 |
tree | dd9923aa27c161ffb6e3c7066969460df9a6b73c | |
parent | d528e6e5b9def0e9f6f8726a29e49d5dab2bf2a2 [diff] |
Protect against NaN in flyout collapses. This can happen if getWidth() returns 0, likely the result of a race condition. Since setFlyoutCollapsed is called continuously as a flyout is dragged, we can just wait until getWidth() > 0. Bug: 139816141 Test: atest SystemUITests Change-Id: I2e7b8521a2930564f71919f4f4708c791a9b3545