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

Commit a0a24a7c authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7085329 from 5970b0c1 to rvc-qpr3-release

Change-Id: I3fa8eb37fc7bc7da93b579b7376f81ed7e0600c5
parents 59ded884 5970b0c1
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ import com.android.internal.telephony.util.HandlerExecutor;

import java.util.concurrent.Executor;

import java.util.NoSuchElementException;

/**
 * Base class of MmTelFeatureConnection and RcsFeatureConnection.
 */
@@ -102,7 +104,8 @@ public abstract class FeatureConnection {
                    mBinder.linkToDeath(mDeathRecipient, 0);
                }
            } catch (RemoteException e) {
                // No need to do anything if the binder is already dead.
                Log.w(TAG, "setBinder: linkToDeath on already dead Binder, setting null");
                mBinder = null;
            }
        }
    }
@@ -127,9 +130,13 @@ public abstract class FeatureConnection {
            if (mIsAvailable) {
                mIsAvailable = false;
                mRegistrationBinder = null;
                try {
                    if (mBinder != null) {
                        mBinder.unlinkToDeath(mDeathRecipient, 0);
                    }
                } catch (NoSuchElementException e) {
                    Log.w(TAG, "onRemovedOrDied: unlinkToDeath called on unlinked Binder.");
                }
                if (mStatusCallback != null) {
                    Log.d(TAG, "onRemovedOrDied: notifyUnavailable");
                    mStatusCallback.notifyUnavailable();