summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-12-10 03:32:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-10 03:32:32 +0000
commit85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96 (patch)
tree6b2799cf632cec4addfbe2e269b8d4c03d0263a5 /src
parent11d84f01773a8ec2a10ec9a1dd74d6c5c7856988 (diff)
parentfe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02 (diff)
downloadandroid_packages_apps_PhoneCommon-85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96.tar.gz
android_packages_apps_PhoneCommon-85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96.tar.bz2
android_packages_apps_PhoneCommon-85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96.zip
am fe9b6dbf: am 690b2c69: Enable text-to-speech in dialer edit field (1/2)
* commit 'fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02': Enable text-to-speech in dialer edit field (1/2)
Diffstat (limited to 'src')
-rw-r--r--src/com/android/phone/common/dialpad/DialpadView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadView.java b/src/com/android/phone/common/dialpad/DialpadView.java
index 2500f98..b5c3982 100644
--- a/src/com/android/phone/common/dialpad/DialpadView.java
+++ b/src/com/android/phone/common/dialpad/DialpadView.java
@@ -30,6 +30,7 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
+import android.view.accessibility.AccessibilityManager;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.LinearLayout;
@@ -114,6 +115,13 @@ public class DialpadView extends LinearLayout {
mRateContainer = (ViewGroup) findViewById(R.id.rate_container);
mIldCountry = (TextView) mRateContainer.findViewById(R.id.ild_country);
mIldRate = (TextView) mRateContainer.findViewById(R.id.ild_rate);
+
+ AccessibilityManager accessibilityManager = (AccessibilityManager)
+ getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);
+ if (accessibilityManager.isEnabled()) {
+ // The text view must be selected to send accessibility events.
+ mDigits.setSelected(true);
+ }
}
private void setupKeypad() {