Adapt to the new API of ShadowCaptioningManager.

Test: Presubmit.
Change-Id: If90894a2438ff5e0aec8e727036f7a656f4c712a
This commit is contained in:
Ang Li
2024-05-08 20:30:58 +00:00
parent 12d49a521c
commit f0e6f12f10
13 changed files with 53 additions and 21 deletions

View File

@@ -102,7 +102,8 @@ public class CaptioningWindowOpacityControllerTest {
@Test
public void onValueChanged_shouldSetCaptionEnabled() {
mShadowCaptioningManager.setEnabled(false);
Settings.Secure.putInt(
mContext.getContentResolver(), Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, OFF);
mController.displayPreference(mScreen);
mController.onValueChanged(mPreference, 0x80FFFFFF);