Fix mini keyboard display position when preview is disabled

Bug: 3021082
Change-Id: I2cfb462c89b222449ee2ba5559462a9f5d2306ed
main
Tadashi G. Takaoka 2010-09-21 18:29:20 +09:00
parent 56cd6df95e
commit 6b75eaa12d
1 changed files with 1 additions and 1 deletions

View File

@ -1119,7 +1119,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
popupY -= container.getMeasuredHeight();
popupY += container.getPaddingBottom();
final int x = popupX;
final int y = isOneRowKeyboard(mMiniKeyboard.getKeyboard())
final int y = mShowPreview && isOneRowKeyboard(mMiniKeyboard.getKeyboard())
? mPopupPreviewDisplayedY : popupY;
int adjustedX = x;