summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-06-07 19:50:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-07 19:50:14 +0000
commit5749edd52e1b5fb772dfe127b87a48f6b943a1ef (patch)
tree0c39b7b28682eaa0e6384540f5dd79ee757a389c
parentc8d58599d7fdcee444e3255104c0043a6f459e43 (diff)
parentf62092d487723bb12e75767f31bcc0fd27209adc (diff)
Merge "Set the preferred SIM when InCallActivity is not visible."
-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(),