reset the negative keyboard height

parent e4f4d6f0
......@@ -113,6 +113,11 @@ public class KeyboardHeightProvider
mPopupView.getWindowVisibleDisplayFrame(rect);
int keyboardHeight = screenSize.y - rect.bottom;
// keyboardHeight can be negative, when navigation panel is hided
// screenSize doesn't take into account the possibility of hiding panel
if (keyboardHeight < 0) {
keyboardHeight = 0;
}
mObserver.onKeyboardHeightChanged(keyboardHeight);
}
catch (final Throwable e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment