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

Commit 6bb2c735 authored by Charlotte Lu's avatar Charlotte Lu Committed by Android (Google) Code Review
Browse files

Merge "APNs missing while numeric is null" into main

parents 8c0042fb 276f30e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ data class ApnData(
    val customizedConfig: CustomizedConfig = CustomizedConfig()
) {
    fun getContentValues(context: Context): ContentValues {
        val simCarrierId =
            context.getSystemService(TelephonyManager::class.java)!!.createForSubscriptionId(subId)
                .getSimCarrierId()
        val values = ContentValues()
        values.put(Telephony.Carriers.NAME, name)
        values.put(Telephony.Carriers.APN, apn)
@@ -93,6 +96,7 @@ data class ApnData(
        values.put(Telephony.Carriers.NETWORK_TYPE_BITMASK, networkType)
        values.put(Telephony.Carriers.CARRIER_ENABLED, apnEnable)
        values.put(Telephony.Carriers.EDITED_STATUS, Telephony.Carriers.USER_EDITED)
        values.put(Telephony.Carriers.CARRIER_ID, simCarrierId)
        return values
    }
}