summaryrefslogtreecommitdiff
path: root/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'java/com')
-rw-r--r--java/com/android/incallui/InCallActivity.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/java/com/android/incallui/InCallActivity.java b/java/com/android/incallui/InCallActivity.java
index a550ddeae..46affdfcc 100644
--- a/java/com/android/incallui/InCallActivity.java
+++ b/java/com/android/incallui/InCallActivity.java
@@ -380,12 +380,6 @@ public class InCallActivity extends TransactionSafeFragmentActivity
this,
preferredAccountFuture,
result -> {
- if (!isVisible()) {
- LogUtil.i(
- "CallingAccountSelector.showPhoneAccountSelectionDialog",
- "activity ended before result returned");
- return;
- }
String callId = waitingForAccountCall.getId();
if (result.getSelectedPhoneAccountHandle().isPresent()) {
selectPhoneAccountListener.onPhoneAccountSelected(
@@ -393,6 +387,13 @@ public class InCallActivity extends TransactionSafeFragmentActivity
return;
}
+ if (!isVisible()) {
+ LogUtil.i(
+ "InCallActivity.showPhoneAccountSelectionDialog",
+ "activity ended before result returned");
+ return;
+ }
+
waitingForAccountCall.setPreferredAccountRecorder(
new PreferredAccountRecorder(
waitingForAccountCall.getNumber(),