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
This commit is contained in:
Sarah Chin
2022-08-10 14:47:50 -07:00
parent 727b4386db
commit 90427e32ca

View File

@@ -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));
}