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

Commit 3d47984f authored by virkumar's avatar virkumar Committed by Automerger Merge Worker
Browse files

(Increasing logging) Adding a new case for IllegalStateException am: eb40db77

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/17908709



Change-Id: Id831fbec7a5083dd5c44a08b78f8e673492648c8
Ignore-AOSP-First: this is an automerge
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents dd1936a2 eb40db77
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -87,9 +87,10 @@ public class MmTelFeatureConnection extends FeatureConnection {
            if (imsRegistration != null) {
                try {
                    imsRegistration.removeRegistrationCallback(localCallback);
                } catch (RemoteException e) {
                } catch (RemoteException | IllegalStateException e) {
                    Log.w(TAG + " [" + mSlotId + "]", "ImsRegistrationCallbackAdapter -"
                            + " unregisterCallback: couldn't remove registration callback");
                            + " unregisterCallback: couldn't remove registration callback"
                            + " Exception: " + e.getMessage());
                }
            } else {
                Log.e(TAG + " [" + mSlotId + "]", "ImsRegistrationCallbackAdapter: ImsRegistration"
@@ -145,9 +146,9 @@ public class MmTelFeatureConnection extends FeatureConnection {
            if (binder != null) {
                try {
                    binder.removeCapabilityCallback(localCallback);
                } catch (RemoteException e) {
                } catch (RemoteException | IllegalStateException e) {
                    Log.w(TAG + " [" + mSlotId + "]", "CapabilityCallbackManager, unregister:"
                            + " Binder is dead.");
                            + " Binder is dead. Exception: " + e.getMessage());
                }
            } else {
                Log.w(TAG + " [" + mSlotId + "]", "CapabilityCallbackManager, unregister:"
@@ -187,9 +188,9 @@ public class MmTelFeatureConnection extends FeatureConnection {
            }
            try {
                binder.removeImsConfigCallback(localCallback);
            } catch (RemoteException e) {
            } catch (RemoteException | IllegalStateException e) {
                Log.w(TAG + " [" + mSlotId + "]", "ProvisioningCallbackManager - couldn't"
                        + " unregister, binder is dead.");
                        + " unregister, binder is dead. Exception: " + e.getMessage());
            }
        }
    }
@@ -322,8 +323,9 @@ public class MmTelFeatureConnection extends FeatureConnection {
                    mMultiEndpoint.getInterface().setExternalCallStateListener(null);
                    mMultiEndpoint = new BinderAccessState<>(BinderAccessState.STATE_NOT_SET);
                }
            } catch (RemoteException e) {
                Log.w(TAG + " [" + mSlotId + "]", "closeConnection: couldn't remove listeners!");
            } catch (RemoteException | IllegalStateException e) {
                Log.w(TAG + " [" + mSlotId + "]", "closeConnection: couldn't remove listeners!" +
                        " Exception: " + e.getMessage());
            }
        }
    }