Loading
Defer hiding clients until animation is done
This is a preparation for remote animations: We used to set app visibility state immediately after we started the animation. However, with remote animations, we'd like to allow them drawing until the transition is done. For that, we defer hiding the client until the animation is done. Instead of special-casing remote animations, we do it for all apps, as there is no harm in doing so. Test: Open YouTube, make sure it enters Auto-PIP when pressing home. Test: go/wm-smoke Test: Open trace with open/closing a couple of apps. Make sure app visibility gets dispatched at the correct time. Test: WindowStateTests Bug: 64674361 Change-Id: I8deb6a97ca1c3d8f4a70a6e045f45a6bc16604bb