Messaging: We don't need to check for verbose logging everywhere
We can just do this in the actual method Change-Id: I80e89b0ab97926749851628b1bd34e8cd9dc82f2
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2015 The Android Open Source Project
|
||||
* Copyright (C) 2025 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,13 +32,10 @@ import com.android.messaging.util.LogUtil;
|
||||
public class NotificationReceiver extends BroadcastReceiver {
|
||||
// Logging
|
||||
public static final String TAG = LogUtil.BUGLE_TAG;
|
||||
public static final boolean VERBOSE = false;
|
||||
|
||||
@Override
|
||||
public void onReceive(final Context context, final Intent intent) {
|
||||
if (VERBOSE) {
|
||||
LogUtil.v(TAG, "NotificationReceiver.onReceive: intent " + intent);
|
||||
}
|
||||
LogUtil.v(TAG, "NotificationReceiver.onReceive: intent " + intent);
|
||||
if (intent.getAction().equals(UIIntents.ACTION_RESET_NOTIFICATIONS)) {
|
||||
final String conversationIdSetString =
|
||||
intent.getStringExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID_SET);
|
||||
@@ -54,4 +52,4 @@ public class NotificationReceiver extends BroadcastReceiver {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user