From 5fb49ead1acf66b1098ef7a107f3038681f263bc Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 2 Oct 2013 11:10:43 -0700 Subject: Don't allow dialpad presses until it is fully in position Bug: 11006188 Change-Id: I67861038510591384daf4e2c5da06af3dda5439c --- src/com/android/dialer/dialpad/DialpadFragment.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java') 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); -- cgit v1.2.3