Replace TelephonyManager methods for mobile data
TelephonyManager had a minor refactor of some of the methods revolving around mobile data. Change code in Settings to use the new ones instead. Bug: 169367013 Test: existing unit tests, manual Change-Id: I7ebae37373d53fb2c59b6b546232dbddf77398d4
This commit is contained in:
@@ -115,9 +115,11 @@ public class MmsMessagePreferenceControllerTest {
|
||||
@Test
|
||||
public void setChecked_setDataIntoSubscriptionManager() {
|
||||
mController.setChecked(true);
|
||||
verify(mTelephonyManager).setAlwaysAllowMmsData(true);
|
||||
verify(mTelephonyManager).setMobileDataPolicyEnabledStatus(
|
||||
TelephonyManager.MOBILE_DATA_POLICY_MMS_ALWAYS_ALLOWED, true);
|
||||
|
||||
mController.setChecked(false);
|
||||
verify(mTelephonyManager).setAlwaysAllowMmsData(false);
|
||||
verify(mTelephonyManager).setMobileDataPolicyEnabledStatus(
|
||||
TelephonyManager.MOBILE_DATA_POLICY_MMS_ALWAYS_ALLOWED, false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user