commit | 06745aadca63cfb39a93640baa6e20728bf9f14c | [log] [tgz] |
---|---|---|
author | Joshua Tsuji <tsuji@google.com> | Thu Apr 09 11:17:42 2020 -0400 |
committer | Joshua Tsuji <tsuji@google.com> | Thu Apr 09 11:17:46 2020 -0400 |
tree | 87dd0e7a0f5e64cb840eb2bd1e378d9e7c978f7a | |
parent | be3b2304d2c3b51f908878bbb067def29fa5d792 [diff] |
Fix intermittent PIP crash. Looks like this is caused by calling removeView right before addView, which happens when we recreate the dismiss target. Sometimes, removeView has not completed by the time we addView again. I wasn't able to reproduce the crash, but other places in sysui use removeViewImmediate for this purpose. Bug: 153551432 Test: try rotating the screen a bunch with a PIP visible Change-Id: Ic96173c1273b8476280a7daf63340bbe9613b21e