Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc9aef70 authored by Betty Chang's avatar Betty Chang Committed by Gerrit Code Review
Browse files

Merge "[Mainline] Use the @SystemApi setAlwaysAllowMmsData in TelephonyManager for mainline"

parents 45834d96 4bdbd135
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ public class MmsMessagePreferenceController extends TelephonyTogglePreferenceCon

    @Override
    public boolean setChecked(boolean isChecked) {
        return mSubscriptionManager.setAlwaysAllowMmsData(mSubId, isChecked);
        return mTelephonyManager.setAlwaysAllowMmsData(isChecked);
    }

    @Override
+2 −2
Original line number Diff line number Diff line
@@ -115,9 +115,9 @@ public class MmsMessagePreferenceControllerTest {
    @Test
    public void setChecked_setDataIntoSubscriptionManager() {
        mController.setChecked(true);
        verify(mSubscriptionManager).setAlwaysAllowMmsData(SUB_ID, true);
        verify(mTelephonyManager).setAlwaysAllowMmsData(true);

        mController.setChecked(false);
        verify(mSubscriptionManager).setAlwaysAllowMmsData(SUB_ID, false);
        verify(mTelephonyManager).setAlwaysAllowMmsData(false);
    }
}