diff options
author | Alan Viverette <alanv@google.com> | 2013-12-19 18:09:10 -0800 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-12-19 18:09:10 -0800 |
commit | 949ddad1a2d23e3e9336891a551a19bd6b5dd0ed (patch) | |
tree | 4950c95a639428fba5ee7bdaf50aa8156743720d /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 7983206661f065342767bb4141d7a924323b2933 (diff) |
Support long-click during lift-to-type accessibility mode
BUG: 8310727
Change-Id: Icf9e103d2d6f5b5e7acb8c7f16244f0cebe9ffaa
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 9a23812be..0d2337819 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -662,10 +662,16 @@ public class DialpadFragment extends Fragment } // Long-pressing one button will initiate Voicemail. - fragmentView.findViewById(R.id.one).setOnLongClickListener(this); + final DialpadKeyButton one = (DialpadKeyButton) fragmentView.findViewById(R.id.one); + one.setOnLongClickListener(this); + one.setLongHoverContentDescription( + resources.getText(R.string.description_voicemail_button)); // Long-pressing zero button will enter '+' instead. - fragmentView.findViewById(R.id.zero).setOnLongClickListener(this); + final DialpadKeyButton zero = (DialpadKeyButton) fragmentView.findViewById(R.id.zero); + zero.setOnLongClickListener(this); + zero.setLongHoverContentDescription( + resources.getText(R.string.description_image_button_plus)); } |