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

Commit d8ea14e0 authored by James Lin's avatar James Lin Committed by Gerrit Code Review
Browse files

Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl"

parents 7a622ea7 1cad8f9f
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -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);
        }