diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java | 15 | 
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}.       *  |