diff options
| author | 2020-06-24 17:41:40 +0000 | |
|---|---|---|
| committer | 2020-06-24 17:41:40 +0000 | |
| commit | 694cf0dd90f757df86ef0c0fbf3d674650856d15 (patch) | |
| tree | 36e70b4a36cb2b007841e672b2f6a8d3f0242d63 | |
| parent | 53ea2fa69fe3588b8b9be093c67222afc2902a21 (diff) | |
| parent | 3745307f37dae585285b1d4f8b6de3c27d0edbbf (diff) | |
Merge "Remove overflow experiment flags" into rvc-dev am: c25e26ae8a am: 9f1a805303 am: aec2fba8ef am: 3745307f37
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11964765
Change-Id: If9f1d8775ac3f6c15f962e4c18222d6a31bdd841
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleExperimentConfig.java | 12 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java | 13 |
2 files changed, 3 insertions, 22 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleExperimentConfig.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleExperimentConfig.java index a888bd57c699..ffb650d62064 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleExperimentConfig.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleExperimentConfig.java @@ -70,9 +70,6 @@ public class BubbleExperimentConfig { private static final String WHITELISTED_AUTO_BUBBLE_APPS = "whitelisted_auto_bubble_apps"; - private static final String ALLOW_BUBBLE_OVERFLOW = "allow_bubble_overflow"; - private static final boolean ALLOW_BUBBLE_OVERFLOW_DEFAULT = true; - /** * When true, if a notification has the information necessary to bubble (i.e. valid * contentIntent and an icon or image), then a {@link android.app.Notification.BubbleMetadata} @@ -87,15 +84,6 @@ public class BubbleExperimentConfig { } /** - * When true, show a menu with dismissed and aged-out bubbles. - */ - static boolean allowBubbleOverflow(Context context) { - return Settings.Secure.getInt(context.getContentResolver(), - ALLOW_BUBBLE_OVERFLOW, - ALLOW_BUBBLE_OVERFLOW_DEFAULT ? 1 : 0) != 0; - } - - /** * Same as {@link #allowAnyNotifToBubble(Context)} except it filters for notifications that * are using {@link Notification.MessagingStyle} and have remote input. */ diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java index a0a83851b607..7937ef5d4192 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java @@ -1152,9 +1152,6 @@ public class BubbleStackView extends FrameLayout } private void setUpOverflow() { - if (!BubbleExperimentConfig.allowBubbleOverflow(mContext)) { - return; - } int overflowBtnIndex = 0; if (mBubbleOverflow == null) { mBubbleOverflow = new BubbleOverflow(getContext()); @@ -1520,8 +1517,7 @@ public class BubbleStackView extends FrameLayout } private void updateOverflowVisibility() { - if (!BubbleExperimentConfig.allowBubbleOverflow(mContext) - || mBubbleOverflow == null) { + if (mBubbleOverflow == null) { return; } mBubbleOverflow.setVisible(mIsExpanded ? VISIBLE : GONE); @@ -2780,11 +2776,8 @@ public class BubbleStackView extends FrameLayout * @return the number of bubbles in the stack view. */ public int getBubbleCount() { - if (BubbleExperimentConfig.allowBubbleOverflow(mContext)) { - // Subtract 1 for the overflow button that is always in the bubble container. - return mBubbleContainer.getChildCount() - 1; - } - return mBubbleContainer.getChildCount(); + // Subtract 1 for the overflow button that is always in the bubble container. + return mBubbleContainer.getChildCount() - 1; } /** |