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

Commit dc6c5791 authored by Marin Shalamanov's avatar Marin Shalamanov Committed by Android (Google) Code Review
Browse files

Merge "Remove dead code"

parents 5cd0cf1f e89ec226
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@
package com.android.systemui.statusbar.notification.stack

import android.content.Context
import android.service.notification.NotificationListenerService.REASON_APP_CANCEL
import android.service.notification.NotificationListenerService.REASON_APP_CANCEL_ALL
import android.service.notification.NotificationListenerService.REASON_CANCEL
import android.service.notification.NotificationListenerService.REASON_CANCEL_ALL
import android.service.notification.NotificationListenerService.REASON_CLICK
@@ -76,7 +74,8 @@ class ForegroundServiceSectionController @Inject constructor(
        Assert.isMainThread()
        val isClearAll = reason == REASON_CANCEL_ALL
        val isUserDismiss = reason == REASON_CANCEL || reason == REASON_CLICK
        val isAppCancel = reason == REASON_APP_CANCEL || reason == REASON_APP_CANCEL_ALL
        // REASON_APP_CANCEL and REASON_APP_CANCEL_ALL are ignored, because the
        // foreground service associated with it is gone.
        val isSummaryCancel = reason == REASON_GROUP_SUMMARY_CANCELED

        if (entry == null) return false