diff --git a/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java b/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java index 12bc16e..6ce30d9 100644 --- a/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java +++ b/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java @@ -158,10 +158,13 @@ public void onGlobalLayout() { int resourceId = mContext.getResources() .getIdentifier("status_bar_height", "dimen", "android"); - if (resourceId > 0) { - heightDifference -= mContext.getResources() - .getDimensionPixelSize(resourceId); - } + if (!((Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) && (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP))) { + if (resourceId > 0) { + heightDifference -= mContext.getResources() + .getDimensionPixelSize(resourceId); +// Log.e("keyboard height", "resourceId > 0" + heightDifference); + } + } if (heightDifference > 100) { keyBoardHeight = heightDifference; setSize(LayoutParams.MATCH_PARENT, keyBoardHeight);