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

Commit d3ada02c authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Revert ImsResolver binding check

Reverts the ImsResolver in progress binding check.
This caused a race condition that would sometimes
result in IMS not being registered when SIM swapping to
a carrier ImsService that supports RCS only.

Bug: 109762920
Test: Telephony Unit/GTS testing
Merged-In: I0905dc7472a76900c97e3902a4501ad88c182ce1
Change-Id: I8b6b244b51a4500ecdf59ff2d66ef52e05c87b22
parent 08059425
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1451,14 +1451,6 @@ public class ImsManager {
     * busy, it will try to connect before reporting failure.
     */
    public boolean isServiceAvailable() {
        // If we are busy resolving dynamic IMS bindings, we are not available yet.
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        if (tm.isResolvingImsBinding()) {
            Log.d(TAG, "isServiceAvailable: resolving IMS binding, returning false");
            return false;
        }

        connectIfServiceIsAvailable();
        // mImsServiceProxy will always create an ImsServiceProxy.
        return mMmTelFeatureConnection.isBinderAlive();