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

Commit 20f1a78c authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Only reset throttling when carrier config is on" into tm-dev

parents 7e5a3681 5adf561a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -954,7 +954,10 @@ public class DataRetryManager extends Handler {
        mRil.registerForOn(this, EVENT_RADIO_ON, null);
        mRil.registerForModemReset(this, EVENT_MODEM_RESET, null);

        mPhone.getServiceStateTracker().registerForAreaCodeChanged(this, EVENT_TAC_CHANGED, null);
        if (mDataConfigManager.shouldResetDataThrottlingWhenTacChanges()) {
            mPhone.getServiceStateTracker().registerForAreaCodeChanged(this, EVENT_TAC_CHANGED,
                    null);
        }
    }

    @Override
+2 −0
Original line number Diff line number Diff line
@@ -679,6 +679,8 @@ public class DataRetryManagerTest extends TelephonyTest {

    @Test
    public void testTacChangedReset() {
        doReturn(true).when(mDataConfigManager).shouldResetDataThrottlingWhenTacChanges();

        testDataSetupRetryNetworkSuggestedNeverRetry();
        Mockito.clearInvocations(mDataRetryManagerCallbackMock);