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