[cr138][Android] New isEnabled arg at AddExceptionPreference.ctor

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/20d50a1ce5cb2a033ceac9279d429e6dfed87534

	Disable "Add Exception" button if content-setting is managed

	BUG=399933929

	Change-Id: I6e854d3ea379efc5275d01e20f6b2637ae26809e
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6520460
This commit is contained in:
AlexeyBarabash
2025-06-11 17:07:22 -04:00
committed by Emerick Rogul
parent b3bfe72dff
commit 39ad9d5bdf
@@ -56,12 +56,14 @@ public class BraveSingleCategorySettings extends BaseSiteSettingsFragment
exception = true;
}
if (exception) {
boolean enableAddExceptionButton = !mCategory.isManaged();
getPreferenceScreen()
.addPreference(
new AddExceptionPreference(
getPreferenceManager().getContext(),
ADD_EXCEPTION_KEY,
getString(getAddExceptionDialogMessageResourceId()),
enableAddExceptionButton,
mCategory,
this));
}