commit | 786dd93f2ba9b50a2b6b88670f96a7491983fb2a | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Wed Feb 17 15:20:31 2021 -0800 |
committer | Tony Wickham <twickham@google.com> | Thu Feb 18 15:40:33 2021 -0800 |
tree | 1910b58031140b7f6b27eacfaaea4bc913d59646 | |
parent | 15883891ea145784d8ba02e7d3c367f34969b43d [diff] |
Fix a couple of crashes when taskbar isn't yet attached - Handle back to back addTaskbarIfNecessary(). Specifically, handle cleanup() before the previous add was attached. This is already handled on WM side, just had to remove isAttachedToWindow() check. - Add isAttachedToWindow() check to isViewInTaskbar() Test: call addTaskbarIfNecessary() three times back to back, ensure no crash. Fixes: 180509238 Bug: 171917176 Change-Id: Id68b6c376029eb5c651f47afa56666391c516aef