Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fb49ead authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't allow dialpad presses until it is fully in position

Bug: 11006188
Change-Id: I67861038510591384daf4e2c5da06af3dda5439c
parent 8e5c8b11
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);