diff options
author | Suzuki Masumi <masumi.x.suzuki@sonymobile.com> | 2015-03-03 11:16:15 +0100 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@sonymobile.com> | 2015-10-08 12:03:24 +0200 |
commit | 2c77b019203049133e88ead34704b737c0cb7617 (patch) | |
tree | 0c7d20308325ee7721025e8eb41316faf1715cb2 /InCallUI | |
parent | 4e21366d930557f9a9a4757ca2f0100741c22b8d (diff) |
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()) { |