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

Commit b31fca3c authored by Jernej Virag's avatar Jernej Virag Committed by Android (Google) Code Review
Browse files

Merge "Cleanup NOTIFICATION_MEMORY_LOGGING_ENABLED" into main

parents f1abed23 667dd6f9
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -60,14 +60,6 @@ object Flags {
            "notification_drag_to_contents"
        )

    /**
     * This flag controls whether we register a listener for StatsD notification memory reports.
     * For statsd to actually call the listener however, a server-side toggle needs to be
     * enabled as well.
     */
    val NOTIFICATION_MEMORY_LOGGING_ENABLED =
            releasedFlag("notification_memory_logging_enabled")

    // TODO(b/280783617): Tracking Bug
    @Keep
    @JvmField
+1 −7
Original line number Diff line number Diff line
@@ -20,8 +20,6 @@ package com.android.systemui.statusbar.notification.logging
import android.util.Log
import com.android.systemui.CoreStartable
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.flags.FeatureFlags
import com.android.systemui.flags.Flags
import dagger.Lazy
import javax.inject.Inject

@@ -30,7 +28,6 @@ import javax.inject.Inject
class NotificationMemoryMonitor
@Inject
constructor(
    private val featureFlags: FeatureFlags,
    private val notificationMemoryDumper: NotificationMemoryDumper,
    private val notificationMemoryLogger: Lazy<NotificationMemoryLogger>,
) : CoreStartable {
@@ -42,9 +39,6 @@ constructor(
    override fun start() {
        Log.d(TAG, "NotificationMemoryMonitor initialized.")
        notificationMemoryDumper.init()
        if (featureFlags.isEnabled(Flags.NOTIFICATION_MEMORY_LOGGING_ENABLED)) {
            Log.d(TAG, "Notification memory logging enabled.")
        notificationMemoryLogger.get().init()
    }
}
}