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

Commit a56128c8 authored by Ethan Chen's avatar Ethan Chen Committed by Dan Pasanen
Browse files

Don't write blank baseband version

* There's no point in setting the baseband version if the returned value
  is blank anyway.

Change-Id: Ica9973a8b790c0de6afa10bc131257a3a03f18a0
parent 1bb9f96e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1247,7 +1247,10 @@ public class CDMAPhone extends PhoneBase {
                }

                if (DBG) Rlog.d(LOG_TAG, "Baseband version: " + ar.result);
                setSystemProperty(TelephonyProperties.PROPERTY_BASEBAND_VERSION, (String)ar.result);
                if (!"".equals((String)ar.result)) {
                    setSystemProperty(TelephonyProperties.PROPERTY_BASEBAND_VERSION,
                                      (String)ar.result);
                }
            }
            break;

+3 −1
Original line number Diff line number Diff line
@@ -1601,7 +1601,9 @@ public class GSMPhone extends PhoneBase {
                }

                if (LOCAL_DEBUG) Rlog.d(LOG_TAG, "Baseband version: " + ar.result);
                if (!"".equals((String)ar.result)) {
                    setSystemProperty(PROPERTY_BASEBAND_VERSION, (String)ar.result);
                }
            break;

            case EVENT_GET_IMEI_DONE: