diff options
author | Ihab Awad <ihab@google.com> | 2014-12-09 23:23:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-09 23:23:08 +0000 |
commit | fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02 (patch) | |
tree | f408bcb419b8773c0bb17ee4b2471729b61615d0 /src/com/android | |
parent | c94a7ce5e1995888f6de82d567e066396a3a26a1 (diff) | |
parent | 690b2c6971c6c8a8ef447a15b24d8dd1506f2d0b (diff) | |
download | packages_apps_PhoneCommon-fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02.tar.gz packages_apps_PhoneCommon-fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02.tar.bz2 packages_apps_PhoneCommon-fe9b6dbfdc8322b387fdc4df23b5a6a87a02cf02.zip |
am 690b2c69: Enable text-to-speech in dialer edit field (1/2)
* commit '690b2c6971c6c8a8ef447a15b24d8dd1506f2d0b':
Enable text-to-speech in dialer edit field (1/2)
Diffstat (limited to 'src/com/android')
-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 fdce6f7..d59ecee 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; @@ -112,6 +113,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() { |