Cancel startAnimation(show=true) if IME is not requested to be visible

In the case when we have a control with a leash, and we're calling startAnimation(show=true),
the animation should only start, if the IME was previously requested to be visible.

Test: atest WMShellUnitTests:com.android.wm.shell.common.DisplayImeControllerTest
Flag: android.view.inputmethod.refactor_insets_controller
Fix: 355059468
Change-Id: Icba77bbe84cd90150017f29c9b34438c64435468
2 files changed