diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-01-25 04:01:39 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-01-25 04:01:39 +0000 |
commit | 05b5e8912f5dbf357c123665be8944caf043a4e8 (patch) | |
tree | d7891f88dcd88c5f20625eb58b3f43dd1e8610ad /java/com/android/newbubble/BottomActionViewController.java | |
parent | 42a0152d7228c7de68ea2eac3c562a144333327d (diff) | |
parent | 849f332ffa5fc9430c4bc38c5a0ee78da77f0a39 (diff) |
Merge changes I46e819a0,I4ee4ff98,Ifae9c912,Idc58efce,I60b0122f
* changes:
Add skeleton for SpamPhoneLookup
Show Icon and label for blocked numbers
Bubble v2 a11y.
Add flag to enable NUI shortcut.
Rename "ApdlInfo" as "SpamInfo" in proto PhoneLookupInfo.
Diffstat (limited to 'java/com/android/newbubble/BottomActionViewController.java')
-rw-r--r-- | java/com/android/newbubble/BottomActionViewController.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/com/android/newbubble/BottomActionViewController.java b/java/com/android/newbubble/BottomActionViewController.java index 04e0e5fe7..b480ac986 100644 --- a/java/com/android/newbubble/BottomActionViewController.java +++ b/java/com/android/newbubble/BottomActionViewController.java @@ -23,6 +23,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.view.WindowManager.LayoutParams; +import android.view.accessibility.AccessibilityEvent; import android.view.animation.LinearInterpolator; /** Controller for showing and hiding bubble bottom action view. */ @@ -157,10 +158,14 @@ final class BottomActionViewController { // Scale unhighlight target back to 1x if (!shouldHighlightDismiss && dismissHighlighted) { + // A11y + dismissView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_HOVER_EXIT); // Unhighlight dismiss dismissView.animate().scaleX(1f).scaleY(1f).setDuration(HIGHLIGHT_TARGET_DURATION).start(); dismissHighlighted = false; } else if (!shouldHighlightEndCall && endCallHighlighted) { + // A11y + endCallView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_HOVER_EXIT); // Unhighlight end call endCallView.animate().scaleX(1f).scaleY(1f).setDuration(HIGHLIGHT_TARGET_DURATION).start(); endCallHighlighted = false; @@ -168,6 +173,8 @@ final class BottomActionViewController { // Scale highlight target larger if (shouldHighlightDismiss && !dismissHighlighted) { + // A11y + dismissView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_HOVER_ENTER); // Highlight dismiss dismissView.setPivotY(dismissView.getHeight() / 2 + textOffsetSize); dismissView @@ -184,6 +191,8 @@ final class BottomActionViewController { .start(); dismissHighlighted = true; } else if (shouldHighlightEndCall && !endCallHighlighted) { + // A11y + endCallView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_HOVER_ENTER); // Highlight end call endCallView.setPivotY(dismissView.getHeight() / 2 + textOffsetSize); endCallView |