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

Commit f9fd3b9e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix toggle button is enabled state but can't click" into qt-dev

parents 4fe32785 af4180cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC
                    .setSourceMetricsCategory(
                            SettingsEnums.MANAGE_APPLICATIONS_NOTIFICATIONS)
                    .toIntent());
            pref.setEnabled(mNotificationBackend.isBlockable(mContext, appEntry.info));
            pref.setSwitchEnabled(mNotificationBackend.isBlockable(mContext, appEntry.info));
            pref.setOnPreferenceChangeListener((preference, newValue) -> {
                boolean blocked = !(Boolean) newValue;
                mNotificationBackend.setNotificationsEnabledForPackage(