Fix voicemail notification for Sprint.
Jake Hamby [Thu, 12 Sep 2013 21:55:34 +0000 (14:55 -0700)]
Sprint voicemail notification wasn't showing up because we were
looking for a CSIM application on the UICC and couldn't find it.
Added code to CDMAPhone.onUpdateIccAvailability() to load the USIM
application if we fail to get the CSIM application.

Bug: 9908333
Change-Id: I5c69c9eea6972e377b10a4057492f9ecc8233028

src/java/com/android/internal/telephony/cdma/CDMAPhone.java

index f3798ca..0f0dd89 100644 (file)
@@ -1197,6 +1197,12 @@ public class CDMAPhone extends PhoneBase {
         UiccCardApplication newUiccApplication =
                 mUiccController.getUiccCardApplication(UiccController.APP_FAM_3GPP2);
 
+        if (newUiccApplication == null) {
+            log("can't find 3GPP2 application; trying APP_FAM_3GPP");
+            newUiccApplication = mUiccController
+                    .getUiccCardApplication(UiccController.APP_FAM_3GPP);
+        }
+
         UiccCardApplication app = mUiccApplication.get();
         if (app != newUiccApplication) {
             if (app != null) {