Merge "IMS: Check for binderstate before calling endSession"
This commit is contained in:
@@ -90,12 +90,12 @@ public class ImsServiceProxy extends ImsServiceProxyCompat implements IRcsFeatur
|
|||||||
" status: " + status);
|
" status: " + status);
|
||||||
if (mSlotId == slotId && feature == mSupportedFeature) {
|
if (mSlotId == slotId && feature == mSupportedFeature) {
|
||||||
mFeatureStatusCached = status;
|
mFeatureStatusCached = status;
|
||||||
}
|
|
||||||
}
|
|
||||||
if (mStatusCallback != null) {
|
if (mStatusCallback != null) {
|
||||||
mStatusCallback.notifyStatusChanged();
|
mStatusCallback.notifyStatusChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public ImsServiceProxy(int slotId, IBinder binder, int featureType) {
|
public ImsServiceProxy(int slotId, IBinder binder, int featureType) {
|
||||||
@@ -129,7 +129,9 @@ public class ImsServiceProxy extends ImsServiceProxyCompat implements IRcsFeatur
|
|||||||
@Override
|
@Override
|
||||||
public void endSession(int sessionId) throws RemoteException {
|
public void endSession(int sessionId) throws RemoteException {
|
||||||
synchronized (mLock) {
|
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);
|
getServiceInterface(mBinder).endSession(mSlotId, mSupportedFeature, sessionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user