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

Commit 276f30e3 authored by Charlotte Lu's avatar Charlotte Lu
Browse files

APNs missing while numeric is null

Test: Visual Test
Fix: 312142091
Change-Id: I1920e3e2dd534d385d0282295e0c3680051d4728
parent e4364595
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
    }
}