am 319eb1c3: am 77144a64: Merge "Retain Emoji Keyboard after rotation"

* commit '319eb1c363a0d443cace14ee41c575a67ecfc93a':
  Retain Emoji Keyboard after rotation
This commit is contained in:
Satoshi Kataoka 2013-10-09 17:54:37 -07:00 committed by Android Git Automerger
commit 3cc9602c57
2 changed files with 2 additions and 4 deletions

View file

@ -75,9 +75,7 @@ public class EmojiLayoutParams {
public void setActionBarProperties(LinearLayout ll) {
final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams();
lp.height = mEmojiActionBarHeight;
lp.topMargin = 0;
lp.bottomMargin = mBottomPadding;
lp.height = mEmojiActionBarHeight - mBottomPadding;
ll.setLayoutParams(lp);
}

View file

@ -155,7 +155,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
}
public void saveKeyboardState() {
if (getKeyboard() != null) {
if (getKeyboard() != null || isShowingEmojiKeyboard()) {
mState.onSaveKeyboardState();
}
}