diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-08-25 05:34:40 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-08-25 05:34:40 +0000 |
commit | 0b0e74a512e1d60ca697eb4e80b2abf76f3a59e5 (patch) | |
tree | 2a275b4cf356d916c721cacf7c82a8ee8767b276 | |
parent | 8d0c0c3453443d6d77049a17216865a28feea1a8 (diff) | |
parent | cec0387fecf604065b1d389336530bad2245e3b0 (diff) | |
download | Telecomm-android14-d1-release.tar.gz |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/24151559'] into udc-d1-release.android-14.0.0_r12android-14.0.0_r11android14-d1-release
Change-Id: I3d729a052dd2923d202427ec918f4ebfbfee8e28
-rw-r--r-- | src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java index 963e92317..05e73d544 100644 --- a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java +++ b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java @@ -175,6 +175,20 @@ public class CallRedirectionProcessor implements CallRedirectionCallback { Log.endSession(); } } + + @Override + public void onBindingDied(ComponentName componentName) { + // Make sure we unbind the service if binding died to avoid background stating + // activity leaks + Log.startSession("CRSC.oBD"); + try { + synchronized (mTelecomLock) { + finishCallRedirection(); + } + } finally { + Log.endSession(); + } + } } private class CallRedirectionAdapter extends ICallRedirectionAdapter.Stub { |