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

Commit 0d0aa284 authored by Scott Brady's avatar Scott Brady
Browse files

Fix for Market not showing operator and operator billing on CDMA

The last commit to RuimRecords attempts to read the operator_numeric
and operator_iso_country from the ruim card.  For phones without
a ruim card the codes are set to null resulting in the Market not
showing the operator and operator billing options.  This patch
removes the null setting.

Change-Id: I2c5a2cdf002e7d5f270bee07c573ddaccbf55ca6
parent 98847a8f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -118,9 +118,6 @@ public final class RuimRecords extends IccRecords {

        adnCache.reset();

        phone.setSystemProperty(PROPERTY_ICC_OPERATOR_NUMERIC, null);
        phone.setSystemProperty(PROPERTY_ICC_OPERATOR_ISO_COUNTRY, null);

        // recordsRequested is set to false indicating that the SIM
        // read requests made so far are not valid. This is set to
        // true only when fresh set of read requests are made.
@@ -326,7 +323,10 @@ public final class RuimRecords extends IccRecords {
        // Further records that can be inserted are Operator/OEM dependent

        String operator = getRUIMOperatorNumeric();

        if (operator != null) {
            SystemProperties.set(PROPERTY_ICC_OPERATOR_NUMERIC, operator);
        }

        if (mImsi != null) {
            SystemProperties.set(PROPERTY_ICC_OPERATOR_ISO_COUNTRY,