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

Commit 533fa151 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Remove some instances of using NEM

Test: Manual w/ new pipeline
Change-Id: I8827349070d8650262e392f73343b2fa8bf1d41a
parent 073eacec
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ import com.android.wm.shell.bubbles.Bubbles
import dagger.Lazy
import java.io.FileDescriptor
import java.io.PrintWriter
import java.util.*
import java.util.Optional
import javax.inject.Inject

/**
@@ -152,10 +152,16 @@ class NotificationsControllerImpl @Inject constructor(
    }

    override fun resetUserExpandedStates() {
        if (notifPipelineFlags.isNewPipelineEnabled()) {
            for (entry in notifPipeline.get().allNotifs) {
                entry.resetUserExpansion()
            }
        } else {
            for (entry in entryManager.visibleNotifications) {
                entry.resetUserExpansion()
            }
        }
    }

    override fun setNotificationSnoozed(sbn: StatusBarNotification, snoozeOption: SnoozeOption) {
        if (snoozeOption.snoozeCriterion != null) {
@@ -167,8 +173,11 @@ class NotificationsControllerImpl @Inject constructor(
        }
    }

    override fun getActiveNotificationsCount(): Int {
        return entryManager.activeNotificationsCount
    override fun getActiveNotificationsCount(): Int =
        if (notifPipelineFlags.isNewPipelineEnabled()) {
            notifPipeline.get().getShadeListCount()
        } else {
            entryManager.activeNotificationsCount
        }

    companion object {