diff options
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/android/incallui/InCallActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/com/android/incallui/InCallActivity.java b/java/com/android/incallui/InCallActivity.java index 0f0e9d9f2..0ee98c25c 100644 --- a/java/com/android/incallui/InCallActivity.java +++ b/java/com/android/incallui/InCallActivity.java @@ -382,6 +382,12 @@ public class InCallActivity extends TransactionSafeFragmentActivity this, preferredAccountFuture, result -> { + if (!isVisible()) { + LogUtil.i( + "CallingAccountSelector.showPhoneAccountSelectionDialog", + "activity ended before result returned"); + return; + } if (result.getPhoneAccountHandle().isPresent()) { Logger.get(this).logImpression(Type.DUAL_SIM_SELECTION_PREFERRED_USED); selectPhoneAccountListener.onPhoneAccountSelected( |