diff options
author | Yorke Lee <yorkelee@google.com> | 2013-10-02 11:10:43 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-10-02 11:10:43 -0700 |
commit | 5fb49ead1acf66b1098ef7a107f3038681f263bc (patch) | |
tree | fd028790b59babf6be4077142e6debb8c17e2b11 | |
parent | 8e5c8b11eb9516fa9b8407e0aa16c0405b5e717e (diff) |
Don't allow dialpad presses until it is fully in position
Bug: 11006188
Change-Id: I67861038510591384daf4e2c5da06af3dda5439c
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index e46a8d3e1..46364b23c 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -807,6 +807,9 @@ public class DialpadFragment extends Fragment } private void keyPressed(int keyCode) { + if (getView().getTranslationY() != 0) { + return; + } switch (keyCode) { case KeyEvent.KEYCODE_1: playTone(ToneGenerator.TONE_DTMF_1, TONE_LENGTH_INFINITE); |