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

Commit 90427e32 authored by Sarah Chin's avatar Sarah Chin
Browse files

Update default for unset MTU v4

The default was added in ag/16276490 and partially reverted in
ag/17950114. Update the default the correct value of 0 instead of -1.

Test: atest ApnSettingTest
Bug: 237602273
Change-Id: I06d5b40d93d4a3bce441756615cccbd02e1822f5
parent 727b4386
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.content.ContentValues;
import android.database.Cursor;
import android.hardware.radio.V1_5.ApnTypes;
import android.net.Uri;
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.Telephony;
@@ -964,7 +963,7 @@ public class ApnSetting implements Parcelable {
                ServiceState.convertBearerBitmaskToNetworkTypeBitmask(bearerBitmask);
        }
        int mtuV4 = cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers.MTU_V4));
        if (mtuV4 == -1) {
        if (mtuV4 == UNSET_MTU) {
            mtuV4 = cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers.MTU));
        }