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

Commit 453e7057 authored by Etan Cohen's avatar Etan Cohen Committed by android-build-merger
Browse files

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

automerge: bf221885

* commit 'bf221885':
  IMS phone instantiation: add polling on base phone creation
parents 5fcf15d7 bf221885
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);