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

Commit 957676d9 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
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: Ie5cdec1cbdd3285af3af730dac4a5de95ad8b334
parent 3a86afe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2409,7 +2409,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
    }

    private void updateShowNotificationChannelWarningsOptions() {
        final int defaultWarningEnabled = Build.IS_DEBUGGABLE ? 1 : 0;
        final int defaultWarningEnabled = Build.TYPE.equals("eng") ? 1 : 0;
        updateSwitchPreference(mShowNotificationChannelWarnings, Settings.Global.getInt(
                getActivity().getContentResolver(),
                Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, defaultWarningEnabled) != 0);