summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-09-20 00:24:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-09-20 00:24:10 +0000
commit99e737653a6401e33e54d81ebff8a6eb99fc964f (patch)
tree87c87c306e477d5e7b4f5f457182ae3984fb980b
parent19f3eea652c53ff8103c9c1e677eca5facaec2c0 (diff)
parente0dd097292576c5264a0a5cec1cec9548831c162 (diff)
Merge "Remove unused code"
-rw-r--r--packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
index 20e2d219b0b1..72ada6e90cd0 100644
--- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
+++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java
@@ -52,7 +52,6 @@ import android.content.res.Configuration;
import android.graphics.Rect;
import android.os.RemoteException;
import android.os.ServiceManager;
-import android.provider.Settings;
import android.service.notification.NotificationListenerService.RankingMap;
import android.service.notification.ZenModeConfig;
import android.util.ArraySet;
@@ -129,9 +128,6 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
public static final int MAX_BUBBLES = 5; // TODO: actually enforce this
- /** Flag to enable or disable the entire feature */
- private static final String ENABLE_BUBBLES = "experiment_enable_bubbles";
-
private final Context mContext;
private final NotificationEntryManager mNotificationEntryManager;
private final BubbleTaskStackListener mTaskStackListener;
@@ -636,9 +632,6 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
private final NotificationEntryListener mEntryListener = new NotificationEntryListener() {
@Override
public void onPendingEntryAdded(NotificationEntry entry) {
- if (!areBubblesEnabled(mContext)) {
- return;
- }
if (mNotificationInterruptionStateProvider.shouldBubbleUp(entry)
&& canLaunchInActivityView(mContext, entry)) {
updateBubble(entry);
@@ -647,9 +640,6 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
@Override
public void onPreEntryUpdated(NotificationEntry entry) {
- if (!areBubblesEnabled(mContext)) {
- return;
- }
boolean shouldBubble = mNotificationInterruptionStateProvider.shouldBubbleUp(entry)
&& canLaunchInActivityView(mContext, entry);
if (!shouldBubble && mBubbleData.hasBubbleWithKey(entry.key)) {
@@ -945,11 +935,6 @@ public class BubbleController implements ConfigurationController.ConfigurationLi
}
}
- private static boolean areBubblesEnabled(Context context) {
- return Settings.Secure.getInt(context.getContentResolver(),
- ENABLE_BUBBLES, 1) != 0;
- }
-
/**
* Whether an intent is properly configured to display in an {@link android.app.ActivityView}.
*