[MainSwitchPreference] Remove OnCheckedChangeListener from NightDisplayActivationPreferenceController

Bug: 400335057
Flag: EXEMPT refactor
Test: manual
Change-Id: I97506685a9a188755297c90d15ead738667c8d5c
This commit is contained in:
Jacky Wang
2025-03-07 12:23:10 +08:00
parent 9eb7cd95b4
commit 0da0270ff7
2 changed files with 3 additions and 29 deletions

View File

@@ -104,7 +104,7 @@ public class NightDisplayActivationPreferenceControllerTest {
final NightDisplayActivationPreferenceController controller =
new NightDisplayActivationPreferenceController(mContext, "night_display_activated");
controller.onCheckedChanged(null, true);
controller.setChecked(true);
assertThat(mColorDisplayManager.isNightDisplayActivated()).isEqualTo(true);
}
@@ -115,7 +115,7 @@ public class NightDisplayActivationPreferenceControllerTest {
final NightDisplayActivationPreferenceController controller =
new NightDisplayActivationPreferenceController(mContext, "night_display_activated");
controller.onCheckedChanged(null, false);
controller.setChecked(false);
assertThat(mColorDisplayManager.isNightDisplayActivated()).isEqualTo(false);
}