Fix insets animations being skipped when the host view was invisible
In case the insets animation frame will not be scheduled by render thread when the host window was not visible to user, added ViewRootInsetsControllerHost#isVisibleToUser to check when invoking applySurfaceParams to schedule the next frame, if the host was not visible means we don't have to synchronize with the window host and just apply the surface transaction on the UI thread directly. Fix: 206992027 Test: manual as steps 1) Receive any incoming message 2) Tap on inline reply to show the keyboard 3) Tap on the voice input button on the keyboard 4) when permission dialogue prompts on the screen, expecting both notification shade panel collpse animation and IME hiding animation are working fine without any stucked frame. Change-Id: I266587d5a3f136149d116214e2a49de92466ec2e
Loading
Please register or sign in to comment