Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56a168fd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fixing a11y bubble issues" into rvc-dev am: 19136114 am: 9c727165

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

Change-Id: I048c0faff4e96dabdca58eb347c7bd4e5839d8e7
parents 9cc00b3b 9c727165
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ public class BadgedImageView extends ImageView {
        mDotRenderer = new DotRenderer(mBubbleBitmapSize, iconPath, DEFAULT_PATH_SIZE);

        setFocusable(true);
        setClickable(true);
    }

    /**
+2 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ import android.util.Log;
import android.util.Pair;
import android.util.SparseSetArray;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;

@@ -394,6 +395,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
                : statusBarService;

        mBubbleScrim = new ScrimView(mContext);
        mBubbleScrim.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);

        mSavedBubbleKeysPerUser = new SparseSetArray<>();
        mCurrentUserId = mNotifUserManager.getCurrentUserId();
+4 −0
Original line number Diff line number Diff line
@@ -2515,6 +2515,10 @@ public class BubbleStackView extends FrameLayout
                    .spring(DynamicAnimation.SCALE_Y, 1f)
                    .spring(DynamicAnimation.TRANSLATION_X, targetX)
                    .spring(DynamicAnimation.TRANSLATION_Y, targetY)
                    .withEndActions(() -> {
                        View child = mManageMenu.getChildAt(0);
                        child.requestAccessibilityFocus();
                    })
                    .start();

            mManageMenu.setVisibility(View.VISIBLE);