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

Commit cc8cba05 authored by Bruno Martins's avatar Bruno Martins
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
parent 9219f48a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3278,7 +3278,7 @@ public class NotificationManagerService extends SystemService {
    }

    private void doChannelWarningToast(CharSequence toastText) {
        final int defaultWarningEnabled = Build.IS_DEBUGGABLE ? 1 : 0;
        final int defaultWarningEnabled = Build.TYPE.equals("eng") ? 1 : 0;
        final boolean warningEnabled = Settings.Global.getInt(getContext().getContentResolver(),
                Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, defaultWarningEnabled) != 0;
        if (warningEnabled) {