Fix a small issue with IME adjustment

For some keyboards, display frame is the same as the fullscreen, because
the way they layout their stuff is different. In such cases, the stack
bounds were moved too far.

Bug: 28126905
Change-Id: Id3c2c8d9d16e27634006a8ef70d35d8826302da0
This commit is contained in:
Jorim Jaggi
2016-04-11 21:14:12 -07:00
parent 38b5ec9f08
commit 5ac2ba25ce

View File

@@ -910,7 +910,7 @@ public class TaskStack implements DimLayer.DimLayerUser,
// Calculate the content bounds excluding the area occupied by IME
getDisplayContent().getContentRect(displayContentRect);
contentBounds.set(displayContentRect);
int imeTop = Math.max(imeWin.getDisplayFrameLw().top, contentBounds.top);
int imeTop = Math.max(imeWin.getFrameLw().top, contentBounds.top);
// if IME window is animating, get its actual vertical shown position (but no smaller than
// the final target vertical position)