| commit | af4180cf2429444de0cdc2c9bcae47f5ff566748 | [log] [tgz] |
|---|---|---|
| author | Raff Tsai <rafftsai@google.com> | Thu Apr 25 12:08:21 2019 +0800 |
| committer | Raff Tsai <rafftsai@google.com> | Thu Apr 25 12:08:21 2019 +0800 |
| tree | 802221729f6d457974a820be649f1e143a8bc32b | |
| parent | 6cee809841b10ac1a14e35ff9e1da558c90d4924 [diff] |
Fix toggle button is enabled state but can't click Fixes: 131197520 Test: manual Change-Id: Id9f83b4abea55d2569049a48622d473d7f51042f
diff --git a/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java b/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java index 1ec3c4f..8122df7 100644 --- a/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java +++ b/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java
@@ -214,7 +214,7 @@ .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(