Use isInTransition() to detect animations

Shell transitions and isAnimating aren't friends. isInTransition
captures both legacy animations and shell transitions

Bug: 208662670
Bug: 216199003
Test: atest android.server.wm.WindowUntrustedTouchTest (with and without
shell transitions enabled)

Change-Id: I0b7595d2ff69205ed7ffaf2f647677cabe6edde8
1 file changed