Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" am: d8ea14e052
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695312 Change-Id: Ia0f23adf26625b84051159583c25632ee470fc9f
This commit is contained in:
@@ -396,16 +396,6 @@ public class RcsFeature extends ImsFeature {
|
||||
return new RcsCapabilityExchangeImplBase();
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the given CapabilityExchangeImplBase instance.
|
||||
* @param capExchangeImpl The {@link RcsCapabilityExchangeImplBase} instance to be removed.
|
||||
* @hide
|
||||
*/
|
||||
public void removeCapabilityExchangeImpl(
|
||||
@NonNull RcsCapabilityExchangeImplBase capExchangeImpl) {
|
||||
// Override to implement the process of removing RcsCapabilityExchangeImplBase instance.
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the given CapabilityExchangeImplBase instance.
|
||||
* @param capExchangeImpl The {@link RcsCapabilityExchangeImplBase} instance to be destroyed.
|
||||
@@ -450,7 +440,7 @@ public class RcsFeature extends ImsFeature {
|
||||
// Remove the RcsCapabilityExchangeImplBase instance when the capability exchange
|
||||
// instance has been removed in the framework.
|
||||
if (mCapabilityExchangeImpl != null) {
|
||||
removeCapabilityExchangeImpl(mCapabilityExchangeImpl);
|
||||
destroyCapabilityExchangeImpl(mCapabilityExchangeImpl);
|
||||
}
|
||||
mCapabilityExchangeImpl = null;
|
||||
}
|
||||
@@ -468,7 +458,7 @@ public class RcsFeature extends ImsFeature {
|
||||
synchronized (mLock) {
|
||||
// Remove the original instance
|
||||
if (mCapabilityExchangeImpl != null) {
|
||||
removeCapabilityExchangeImpl(mCapabilityExchangeImpl);
|
||||
destroyCapabilityExchangeImpl(mCapabilityExchangeImpl);
|
||||
}
|
||||
mCapabilityExchangeImpl = createCapabilityExchangeImpl(listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user