Adapt to the new API of ShadowCaptioningManager
.
Test: Presubmit. Change-Id: If90894a2438ff5e0aec8e727036f7a656f4c712a
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user