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:
Michael W
2025-04-10 16:08:50 +02:00
parent 8613b6bcc8
commit c4bbba9441
39 changed files with 293 additions and 547 deletions

View File

@@ -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 {
}
}
}
}
}