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

Commit 573414d0 authored by Marc K's avatar Marc K Committed by Gerrit Code Review
Browse files

Turn on Power Notification Controls by default (2/2)



Google has done quite a complete job for controlling
notifications. It's a shame that it was hidden so deeply.

Change-Id: I7e30c8ca9150b0e4b339f25d04bf029c7cf6a113
Signed-off-by: default avatarMarc K <morckx@gmail.com>
parent bf4e859a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1100,7 +1100,7 @@ public class InstalledAppDetails extends AppInfoBase

    public static CharSequence getNotificationSummary(AppRow appRow, Context context) {
        boolean showSlider = Settings.Secure.getInt(
                context.getContentResolver(), NOTIFICATION_TUNER_SETTING, 0) == 1;
                context.getContentResolver(), NOTIFICATION_TUNER_SETTING, 1) == 1;
        List<String> summaryAttributes = new ArrayList<>();
        StringBuffer summary = new StringBuffer();
        if (showSlider) {
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ abstract public class NotificationSettingsBase extends SettingsPreferenceFragmen

        mSuspendedAppsAdmin = RestrictedLockUtils.checkIfApplicationIsSuspended(
                mContext, mPkg, mUserId);
        mShowSlider = Settings.Secure.getInt(getContentResolver(), TUNER_SETTING, 0) == 1;
        mShowSlider = Settings.Secure.getInt(getContentResolver(), TUNER_SETTING, 1) == 1;
    }

    @Override