diff options
author | Yorke Lee <yorkelee@google.com> | 2015-06-27 14:03:25 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-06-29 15:34:57 -0700 |
commit | 6bc6716bcecf319109d47a90e8f223c96c5a66fb (patch) | |
tree | cd2be0e5dadbabb8c1989b77d5ed2aa363d15718 /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | bab70c36308ca61950b9b64afe754d9ec2d98b30 (diff) |
Accessibility fix for Dialer search results
In portrait mode, resize the listview to fit above the dialpad,
so that accessibility services can correctly traverse the
view hierarchy.
Bug: 20172384
Change-Id: I35fb49be7bea5d13d951c4d954ddaf9d8d12780e
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 5b1e21129..b18069fdd 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1669,6 +1669,13 @@ public class DialpadFragment extends Fragment ((DialpadSlidingRelativeLayout) getView()).setYFraction(yFraction); } + public int getDialpadHeight() { + if (mDialpadView == null) { + return 0; + } + return mDialpadView.getHeight(); + } + public void process_quote_emergency_unquote(String query) { if (PseudoEmergencyAnimator.PSEUDO_EMERGENCY_NUMBER.equals(query)) { if (mPseudoEmergencyAnimator == null) { |