From c6814256424a52e4589642bebee8451a4cf47234 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Thu, 16 May 2019 17:06:52 +0800 Subject: [PATCH] Don't adjust task bounds for IME during unminimizing docked stack In split-screen mode, when home is resizable and IME is showing for it, and launcher doesn't hide IME before launching next task, the current stack bounds (minimized bounds) may be used as adjusted bounds for task. Moreover, if the adjusting of bounds for IME and the moving divider for unminimizing act at the same time, the animation may look flickering. So this CL add a condition to not adjust task bounds for IME until the docked stack is unminimized visually. Fix: 132451731 Test: 1. Launch an app to primary split screen. 2. Press the search bar of launcher. 3. Type a word on IME then click the search result. 4. Check the primary split screen doesn't have black area. (wm.Task shouldn't keep the adjusted override bounds) Change-Id: Ife087b2aa50f1d689803acd5dc54b153b0e8b24b --- .../java/com/android/server/wm/DisplayContent.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index 58a03b26b959b..00188a78af3a1 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java @@ -2632,17 +2632,25 @@ class DisplayContent extends WindowContainer