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

Commit 48d2258f authored by Bruno Martins's avatar Bruno Martins Committed by Łukasz Patron
Browse files

Disable notification channel warnings by default

 * Since we usually ship "userdebug" builds, it is better to globally
   disable the toast because we are not in control of third-party apps
   that haven't been properly aligned with new Oreo requirements.

 * Leave it enabled by default only for "eng" builds.

Change-Id: If0c74bcd03de2b664794e5855c2aaceb5c633b6c
(cherry picked from commit bdccdc5a)
parent 81de9d54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5926,7 +5926,7 @@ public class NotificationManagerService extends SystemService {

    private void doChannelWarningToast(CharSequence toastText) {
        Binder.withCleanCallingIdentity(() -> {
            final int defaultWarningEnabled = Build.IS_DEBUGGABLE ? 1 : 0;
            final int defaultWarningEnabled = Build.IS_ENG ? 1 : 0;
            final boolean warningEnabled = Settings.Global.getInt(getContext().getContentResolver(),
                    Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, defaultWarningEnabled) != 0;
            if (warningEnabled) {