OSDN Git Service

Add nice animation when adjusting for IME in multi-window
authorJorim Jaggi <jjaggi@google.com>
Thu, 14 Apr 2016 03:17:43 +0000 (20:17 -0700)
committerJorim Jaggi <jjaggi@google.com>
Fri, 15 Apr 2016 03:45:45 +0000 (20:45 -0700)
commiteb88d83fc5da8ea05033c03bbb9f0d4b804ba162
treed86fa563f3370a86caba49ce4b223b59b514d1cc
parentbe67c90f4c2255cab3bc036ecdc8d9636ed5e4b5
Add nice animation when adjusting for IME in multi-window

- Run a separate animation when we need to adjust for the IME. We
can't use the attached animation because the adjustment animation
needs to be longer than the IME animation.
- Also run an animation when IME is disappearing.
- Adjust IME exit animation to better match with adjustment exit
animation.
- Make sure to update adjust for IME when entry/exit animation of
IME is starting, to avoid flickers.
- Don't update the IME window in PhoneWindowManager for layout
until the animation has started. This lead to an issue where the
content inset was set too large too early.

Bug: 27154882
Bug: 28175599
Change-Id: I09a33413e307f84d6c3cf4ae928c280f7ad48348
core/res/res/anim/input_method_exit.xml
services/core/java/com/android/server/policy/PhoneWindowManager.java
services/core/java/com/android/server/wm/DockedStackDividerController.java
services/core/java/com/android/server/wm/TaskStack.java
services/core/java/com/android/server/wm/WindowManagerService.java
services/core/java/com/android/server/wm/WindowStateAnimator.java