Merge "Fixing a11y bubble issues" into rvc-dev am: 1913611414

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11886110

Change-Id: Id2122102e852946233b5eecefb9cb4df34fc0606
This commit is contained in:
TreeHugger Robot
2020-06-18 14:38:11 +00:00
committed by Automerger Merge Worker
3 changed files with 7 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ public class BadgedImageView extends ImageView {
mDotRenderer = new DotRenderer(mBubbleBitmapSize, iconPath, DEFAULT_PATH_SIZE); mDotRenderer = new DotRenderer(mBubbleBitmapSize, iconPath, DEFAULT_PATH_SIZE);
setFocusable(true); setFocusable(true);
setClickable(true);
} }
/** /**

View File

@@ -67,6 +67,7 @@ import android.util.Log;
import android.util.Pair; import android.util.Pair;
import android.util.SparseSetArray; import android.util.SparseSetArray;
import android.view.Display; import android.view.Display;
import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.WindowManager; import android.view.WindowManager;
@@ -394,6 +395,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
: statusBarService; : statusBarService;
mBubbleScrim = new ScrimView(mContext); mBubbleScrim = new ScrimView(mContext);
mBubbleScrim.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
mSavedBubbleKeysPerUser = new SparseSetArray<>(); mSavedBubbleKeysPerUser = new SparseSetArray<>();
mCurrentUserId = mNotifUserManager.getCurrentUserId(); mCurrentUserId = mNotifUserManager.getCurrentUserId();

View File

@@ -2515,6 +2515,10 @@ public class BubbleStackView extends FrameLayout
.spring(DynamicAnimation.SCALE_Y, 1f) .spring(DynamicAnimation.SCALE_Y, 1f)
.spring(DynamicAnimation.TRANSLATION_X, targetX) .spring(DynamicAnimation.TRANSLATION_X, targetX)
.spring(DynamicAnimation.TRANSLATION_Y, targetY) .spring(DynamicAnimation.TRANSLATION_Y, targetY)
.withEndActions(() -> {
View child = mManageMenu.getChildAt(0);
child.requestAccessibilityFocus();
})
.start(); .start();
mManageMenu.setVisibility(View.VISIBLE); mManageMenu.setVisibility(View.VISIBLE);