am 9eb88149: Add configuration boolean for fading key top letter

* commit '9eb8814931373cec5929c3b8eac2216e26cb49e1':
  Add configuration boolean for fading key top letter
main
Tadashi G. Takaoka 2013-11-22 01:41:06 -08:00 committed by Android Git Automerger
commit 9a7f8e6399
1 changed files with 3 additions and 1 deletions

View File

@ -157,6 +157,7 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
private final SlidingKeyInputPreview mSlidingKeyInputPreview; private final SlidingKeyInputPreview mSlidingKeyInputPreview;
// Key preview // Key preview
private static final boolean FADE_OUT_KEY_TOP_LETTER_WHEN_KEY_IS_PRESSED = false;
private final int mKeyPreviewLayoutId; private final int mKeyPreviewLayoutId;
private final int mKeyPreviewOffset; private final int mKeyPreviewOffset;
private final int mKeyPreviewHeight; private final int mKeyPreviewHeight;
@ -1177,7 +1178,8 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
params.mAnimAlpha = mAltCodeKeyWhileTypingAnimAlpha; params.mAnimAlpha = mAltCodeKeyWhileTypingAnimAlpha;
} }
// Don't draw key top letter when key preview is showing. // Don't draw key top letter when key preview is showing.
if (mShowingKeyPreviewTextViews.containsKey(key)) { if (FADE_OUT_KEY_TOP_LETTER_WHEN_KEY_IS_PRESSED
&& mShowingKeyPreviewTextViews.containsKey(key)) {
// TODO: Fade out animation for the key top letter, and fade in animation for the key // TODO: Fade out animation for the key top letter, and fade in animation for the key
// background color when the user presses the key. // background color when the user presses the key.
return; return;