From 72dd0d42c60418da0e006ea9ea39fb2da2898a05 Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Wed, 6 Aug 2014 03:59:12 -0700 Subject: Send a stopDtmf() on click for talkback. Bug: 15921080 Change-Id: I89f5c9da7dec1fe9af4cd85cb541020741eb1354 --- .../src/com/android/incallui/DialpadFragment.java | 21 +++++++++++++++++---- .../src/com/android/incallui/DialpadPresenter.java | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/DialpadFragment.java b/InCallUI/src/com/android/incallui/DialpadFragment.java index b22141b95..e15f1bccb 100644 --- a/InCallUI/src/com/android/incallui/DialpadFragment.java +++ b/InCallUI/src/com/android/incallui/DialpadFragment.java @@ -18,6 +18,8 @@ package com.android.incallui; import android.content.Context; import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; import android.text.Editable; import android.text.method.DialerKeyListener; import android.util.AttributeSet; @@ -46,6 +48,8 @@ public class DialpadFragment extends BaseFragment mDisplayMap = new HashMap(); + private static final Handler sHandler = new Handler(Looper.getMainLooper()); + + /** Set up the static maps*/ static { // Map the buttons to the display characters @@ -222,7 +229,7 @@ public class DialpadFragment extends BaseFragment /** * Stops the local tone based on the phone type. */ - public void stopTone() { + public void stopDtmf() { if (mCall != null) { Log.d(this, "stopping remote tone"); TelecommAdapter.getInstance().stopDtmfTone(mCall.getId()); -- cgit v1.2.3