diff options
author | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
commit | 170ac41d329349edb67163fbd5f49f4788a55fcc (patch) | |
tree | 5123af87658d7c4ddedc8ed25dc21f31431f8dfe | |
parent | be034c7dba97656ac176de39dc5e9b4e1e2d1498 (diff) |
Revert "Disable notification channel warnings by default"
Fixed upstream
This reverts commit 60090ce184bc7a55409d91ed6b8ecf306dea14a4.
Change-Id: I93840f103e035e826c928e31beed8e8bc9ff0539
-rwxr-xr-x | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 5ae87689ef48..a8647c624bdc 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -6766,7 +6766,7 @@ public class NotificationManagerService extends SystemService { protected void doChannelWarningToast(int forUid, CharSequence toastText) { Binder.withCleanCallingIdentity(() -> { - final int defaultWarningEnabled = Build.IS_ENG ? 1 : 0; + final int defaultWarningEnabled = Build.IS_DEBUGGABLE ? 1 : 0; final boolean warningEnabled = Settings.Global.getInt(getContext().getContentResolver(), Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, defaultWarningEnabled) != 0; if (warningEnabled) { |