Merge "IMS: Check for binderstate before calling endSession"

This commit is contained in:
Brad Ebinger
2017-06-27 16:46:57 +00:00
committed by Gerrit Code Review

View File

@@ -90,11 +90,11 @@ public class ImsServiceProxy extends ImsServiceProxyCompat implements IRcsFeatur
" status: " + status);
if (mSlotId == slotId && feature == mSupportedFeature) {
mFeatureStatusCached = status;
if (mStatusCallback != null) {
mStatusCallback.notifyStatusChanged();
}
}
}
if (mStatusCallback != null) {
mStatusCallback.notifyStatusChanged();
}
}
};
@@ -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);
}
}