Content settings infrastructure: fix the value used as a summary of the category

This commit is contained in:
Carmelo Messina
2024-05-25 13:11:02 +02:00
parent b28092bf50
commit e08c144f4e
@@ -2491,9 +2491,9 @@ diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/c
+ checked
+ ? ContentSettingsResources.getDefaultEnabledValue(contentType)
+ : ContentSettingsResources.getDefaultDisabledValue(contentType);
+ p.setSummary(
+ ContentSettingsResources.getCategorySummary(
+ defaultForToggle, /* isOneTime= */ false));
+ summary = ContentSettingsResources.getCategorySummary(
+ contentType, defaultForToggle, /* isOneTime= */ false);
+ p.setSummary(summary);
+ }
}