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

Commit af4180cf authored by Raff Tsai's avatar Raff Tsai
Browse files

Fix toggle button is enabled state but can't click

Fixes: 131197520
Test: manual
Change-Id: Id9f83b4abea55d2569049a48622d473d7f51042f
parent 6cee8098
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(