summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-10-02 11:10:43 -0700
committerYorke Lee <yorkelee@google.com>2013-10-02 11:10:43 -0700
commit5fb49ead1acf66b1098ef7a107f3038681f263bc (patch)
treefd028790b59babf6be4077142e6debb8c17e2b11
parent8e5c8b11eb9516fa9b8407e0aa16c0405b5e717e (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.java3
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);