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

Commit 58d47a6f authored by Brad Ebinger's avatar Brad Ebinger Committed by Android (Google) Code Review
Browse files

Merge "IMS: Check for binderstate before calling endSession" into oc-dr1-dev

parents e5c09e42 ce07d61c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -90,12 +90,12 @@ public class ImsServiceProxy extends ImsServiceProxyCompat implements IRcsFeatur
                        " status: " + status);
                if (mSlotId == slotId && feature == mSupportedFeature) {
                    mFeatureStatusCached = status;
                }
            }
                    if (mStatusCallback != null) {
                        mStatusCallback.notifyStatusChanged();
                    }
                }
            }
        }
    };

    public ImsServiceProxy(int slotId, IBinder binder, int featureType) {
@@ -129,7 +129,9 @@ public class ImsServiceProxy extends ImsServiceProxyCompat implements IRcsFeatur
    @Override
    public void endSession(int sessionId) throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();
            // Only check to make sure the binder connection still exists. This method should
            // still be able to be called when the state is STATE_NOT_AVAILABLE.
            checkBinderConnection();
            getServiceInterface(mBinder).endSession(mSlotId, mSupportedFeature, sessionId);
        }
    }