getDockSide() will tell us the stack is docked on bottom even when
we're not in docked mode. So we have to check if docked stack is
visible first.
bug:
26940656
Change-Id: I8729b2502e2fa78ae51e97f5599c23f3d3ea62fc
final WindowState imeWin = mInputMethodWindow;
final TaskStack focusedStack =
mCurrentFocus != null ? mCurrentFocus.getStack() : null;
- if (imeWin != null && focusedStack != null && imeWin.isVisibleNow()
+ if (imeWin != null && imeWin.isVisibleNow()
+ && isStackVisibleLocked(DOCKED_STACK_ID)
+ && focusedStack != null
&& focusedStack.getDockSide() == DOCKED_BOTTOM){
final ArrayList<TaskStack> stacks = displayContent.getStacks();
for (int i = stacks.size() - 1; i >= 0; --i) {