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

Commit f481bb57 authored by vadimt's avatar vadimt Committed by Vadim Tryshev
Browse files

Add tracing to the handler for setting notification filter

This will help to see whether the handler hangs.

Bug: 202567877, 235268992
Test: presubmit
Change-Id: I3dbf0861717b25196728c32e101bc1115484d02e
parent 17cdad7b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -104,10 +104,14 @@ class DebugModeFilterProvider @Inject constructor(
        override fun onReceive(context: Context, intent: Intent?) {
            val action = intent?.action
            if (ACTION_SET_NOTIF_DEBUG_MODE == action) {
                // TODO(b/235268992) remove
                Log.d(TAG, "ACTION_SET_NOTIF_DEBUG_MODE enter")
                allowedPackages = intent.extras?.getStringArrayList(EXTRA_ALLOWED_PACKAGES)
                    ?: emptyList()
                Log.d(TAG, "Updated allowedPackages: $allowedPackages")
                listeners.forEach(Runnable::run)
                // TODO(b/235268992) remove
                Log.d(TAG, "ACTION_SET_NOTIF_DEBUG_MODE leave")
            } else {
                Log.d(TAG, "Malformed intent: $intent")
            }