diff options
author | calderwoodra <calderwoodra@google.com> | 2017-08-03 00:07:43 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-03 08:33:16 -0700 |
commit | c2b1ad7257864be43db8b4324964e4432391a684 (patch) | |
tree | 4de81c6f2351e758d274ab85a05482cbeb5de0d1 /java/com/android | |
parent | 6e5b29c87982bc39303712a9b14c728b85031cfd (diff) |
Call Composer tabs hidden from a11y when hidden from sight.
When the share and call button was visible, users using talkback could reach
the media icons hidden underneath.
Bug: 62649310
Test: manual
PiperOrigin-RevId: 164088069
Change-Id: Ic9cd23a78790c119d6d4d2f6e9d6e62c24e20120
Diffstat (limited to 'java/com/android')
-rw-r--r-- | java/com/android/dialer/callcomposer/CallComposerActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/callcomposer/CallComposerActivity.java b/java/com/android/dialer/callcomposer/CallComposerActivity.java index ddc1e87f8..e6e55134b 100644 --- a/java/com/android/dialer/callcomposer/CallComposerActivity.java +++ b/java/com/android/dialer/callcomposer/CallComposerActivity.java @@ -670,12 +670,20 @@ public class CallComposerActivity extends AppCompatActivity public void onAnimationStart(Animator animation) { isSendAndCallHidingOrHidden = shouldHide; sendAndCall.setVisibility(View.VISIBLE); + cameraIcon.setVisibility(View.VISIBLE); + galleryIcon.setVisibility(View.VISIBLE); + messageIcon.setVisibility(View.VISIBLE); } @Override public void onAnimationEnd(Animator animation) { if (isSendAndCallHidingOrHidden) { sendAndCall.setVisibility(View.INVISIBLE); + } else { + // hide buttons to prevent overdrawing and talkback discoverability + cameraIcon.setVisibility(View.GONE); + galleryIcon.setVisibility(View.GONE); + messageIcon.setVisibility(View.GONE); } } |