diff options
author | Suzuki Masumi <masumi.x.suzuki@sonymobile.com> | 2015-03-03 11:16:15 +0100 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-10-08 10:46:59 -0700 |
commit | 7fc4c8d3ec61d0dbd22d3cdcf31c4f584aaf0ce7 (patch) | |
tree | de1de3d4f3653b25c48e8298c2b26717e4df9a15 /InCallUI | |
parent | 8b4579cd14b1aa11161b4cca96c49ef2c678a067 (diff) |
DO NOT MERGE Cannot input the DTMF number from Bluetooth device
Only KEYEVENT_DPAD_CENTER is handled as a select key in DTMF dial pad.
However, select key from some Bluetooth devices is KEYEVENT_ENTER.
Change-Id: I33e339d591fc14626c01fc7e7bf9788f88ef180f
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/DialpadFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/DialpadFragment.java b/InCallUI/src/com/android/incallui/DialpadFragment.java index abe8fb999..371f5c50a 100644 --- a/InCallUI/src/com/android/incallui/DialpadFragment.java +++ b/InCallUI/src/com/android/incallui/DialpadFragment.java @@ -361,7 +361,7 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadPrese public boolean onKey(View v, int keyCode, KeyEvent event) { Log.d(this, "onKey: keyCode " + keyCode + ", view " + v); - if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { + if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) { int viewId = v.getId(); if (mDisplayMap.containsKey(viewId)) { switch (event.getAction()) { |