diff options
Diffstat (limited to 'java/com/android/dialer/precall')
-rw-r--r-- | java/com/android/dialer/precall/impl/CallingAccountSelector.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/dialer/precall/impl/CallingAccountSelector.java b/java/com/android/dialer/precall/impl/CallingAccountSelector.java index d407296da..9397d1848 100644 --- a/java/com/android/dialer/precall/impl/CallingAccountSelector.java +++ b/java/com/android/dialer/precall/impl/CallingAccountSelector.java @@ -175,6 +175,16 @@ public class CallingAccountSelector implements PreCallAction { LogUtil.i( "CallingAccountSelector.processPreferredAccount", "SIM suggested: " + result.suggestion.get().reason); + if (result.suggestion.get().shouldAutoSelect) { + Logger.get(coordinator.getActivity()) + .logImpression( + DialerImpression.Type.DUAL_SIM_SELECTION_SUGGESTION_AUTO_SELECTED); + LogUtil.i( + "CallingAccountSelector.processPreferredAccount", "Auto selected suggestion"); + builder.setPhoneAccountHandle(result.suggestion.get().phoneAccountHandle); + pendingAction.finish(); + return; + } } showDialog( coordinator, |