diff options
author | Ihab Awad <ihab@google.com> | 2014-12-10 03:32:32 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-10 03:32:32 +0000 |
commit | 85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96 (patch) | |
tree | 6b2799cf632cec4addfbe2e269b8d4c03d0263a5 /src/com/android/phone | |
parent | 11d84f01773a8ec2a10ec9a1dd74d6c5c7856988 (diff) | |
parent | fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02 (diff) | |
download | packages_apps_PhoneCommon-85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96.tar.gz packages_apps_PhoneCommon-85bb6af38c9d31a5ab77cb84d9c3d2471f5c4a96.tar.bz2 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/com/android/phone')
-rw-r--r-- | src/com/android/phone/common/dialpad/DialpadView.java | 8 |
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() { |