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

Commit e0dd0972 authored by Mady Mellor's avatar Mady Mellor
Browse files

Remove unused code

Test: it compiles
Change-Id: I637aa9eb15b822cdb4dae0595427184d190fac01
parent 38a0b536
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -53,7 +53,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;
@@ -131,9 +130,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;
@@ -638,9 +634,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);
@@ -649,9 +642,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}.
     *