Merge "Add tracing to the handler for setting notification filter" into tm-dev

This commit is contained in:
Vadim Tryshev
2022-06-08 01:51:19 +00:00
committed by Android (Google) Code Review

View File

@@ -104,10 +104,14 @@ class DebugModeFilterProvider @Inject constructor(
override fun onReceive(context: Context, intent: Intent?) { override fun onReceive(context: Context, intent: Intent?) {
val action = intent?.action val action = intent?.action
if (ACTION_SET_NOTIF_DEBUG_MODE == 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) allowedPackages = intent.extras?.getStringArrayList(EXTRA_ALLOWED_PACKAGES)
?: emptyList() ?: emptyList()
Log.d(TAG, "Updated allowedPackages: $allowedPackages") Log.d(TAG, "Updated allowedPackages: $allowedPackages")
listeners.forEach(Runnable::run) listeners.forEach(Runnable::run)
// TODO(b/235268992) remove
Log.d(TAG, "ACTION_SET_NOTIF_DEBUG_MODE leave")
} else { } else {
Log.d(TAG, "Malformed intent: $intent") Log.d(TAG, "Malformed intent: $intent")
} }