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

Commit e7620f73 authored by Etan Cohen's avatar Etan Cohen Committed by Android Git Automerger
Browse files

am 1212e103: am 73876a17: IMS phone instantiation: add polling on base phone creation

* commit '1212e103':
  IMS phone instantiation: add polling on base phone creation
parents 7bea5a6c 1212e103
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -425,7 +425,13 @@ public abstract class PhoneBase extends Handler implements Phone {
        mUiccController = UiccController.getInstance();
        mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null);

        // Monitor IMS service
        // Monitor IMS service - but first poll to see if already up (could miss
        // intent)
        ImsManager imsManager = ImsManager.getInstance(mContext, getPhoneId());
        if (imsManager != null && imsManager.isServiceAvailable()) {
            mImsServiceReady = true;
            updateImsPhone();
        }
        IntentFilter filter = new IntentFilter();
        filter.addAction(ImsManager.ACTION_IMS_SERVICE_UP);
        filter.addAction(ImsManager.ACTION_IMS_SERVICE_DOWN);