summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/call
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android/incallui/call')
-rw-r--r--java/com/android/incallui/call/DialerCall.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java
index 30d2bcb5e..5d2b1471d 100644
--- a/java/com/android/incallui/call/DialerCall.java
+++ b/java/com/android/incallui/call/DialerCall.java
@@ -71,6 +71,7 @@ import com.android.dialer.logging.ContactLookupResult;
import com.android.dialer.logging.ContactLookupResult.Type;
import com.android.dialer.logging.DialerImpression;
import com.android.dialer.logging.Logger;
+import com.android.dialer.preferredsim.PreferredAccountRecorder;
import com.android.dialer.telecom.TelecomCallUtil;
import com.android.dialer.telecom.TelecomUtil;
import com.android.dialer.theme.R;
@@ -181,6 +182,8 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa
private volatile boolean feedbackRequested = false;
+ @Nullable private PreferredAccountRecorder preferredAccountRecorder;
+
public static String getNumberFromHandle(Uri handle) {
return handle == null ? "" : handle.getSchemeSpecificPart();
}
@@ -1529,6 +1532,19 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa
}
/**
+ * If the in call UI has shown the phone account selection dialog for the call, the {@link
+ * PreferredAccountRecorder} to record the result from the dialog.
+ */
+ @Nullable
+ public PreferredAccountRecorder getPreferredAccountRecorder() {
+ return preferredAccountRecorder;
+ }
+
+ public void setPreferredAccountRecorder(PreferredAccountRecorder preferredAccountRecorder) {
+ this.preferredAccountRecorder = preferredAccountRecorder;
+ }
+
+ /**
* Specifies whether a number is in the call history or not. {@link #CALL_HISTORY_STATUS_UNKNOWN}
* means there is no result.
*/