From ae749fb5f35a147a8f4374cc9be38efedef4d52c Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Thu, 25 Jun 2020 10:01:52 -0700 Subject: [PATCH] Increase pointer size, move closer to bubble Make selection easier to see Bug: 158482996 Test: manual Change-Id: I34f80d26bc30f9b46edcfad11ac655c895a58784 --- packages/SystemUI/res/values/dimens.xml | 4 ++-- .../src/com/android/systemui/bubbles/BubbleStackView.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 29a2ad4cba9fb..a20e095162a74 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1220,9 +1220,9 @@ 50dp - 4dp + 8dp - 6dp + 12dp 16dp diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java index c985b083f9a9e..96b53884307f4 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java @@ -272,7 +272,6 @@ public class BubbleStackView extends FrameLayout private int mBubbleTouchPadding; private int mExpandedViewPadding; private int mCornerRadius; - private int mPointerHeight; private int mStatusBarHeight; private int mImeOffset; @Nullable private BubbleViewProvider mExpandedBubble; @@ -746,7 +745,6 @@ public class BubbleStackView extends FrameLayout mBubbleElevation = res.getDimensionPixelSize(R.dimen.bubble_elevation); mBubblePaddingTop = res.getDimensionPixelSize(R.dimen.bubble_padding_top); mBubbleTouchPadding = res.getDimensionPixelSize(R.dimen.bubble_touch_padding); - mPointerHeight = res.getDimensionPixelSize(R.dimen.bubble_pointer_height); mStatusBarHeight = res.getDimensionPixelSize(com.android.internal.R.dimen.status_bar_height); @@ -2339,7 +2337,7 @@ public class BubbleStackView extends FrameLayout * Calculates the y position of the expanded view when it is expanded. */ float getExpandedViewY() { - return getStatusBarHeight() + mBubbleSize + mBubblePaddingTop + mPointerHeight; + return getStatusBarHeight() + mBubbleSize + mBubblePaddingTop; } /**