commit | dd7a9f624953ff74edf8beab7903091097749080 | [log] [tgz] |
---|---|---|
author | twyen <twyen@google.com> | Thu Feb 01 12:34:41 2018 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Thu Feb 01 16:13:34 2018 -0800 |
tree | b09a964c401f84f094fb445885cbc377e7c82a63 | |
parent | f765d94d1c3b7e03e20333608e9b5dd07af38b73 [diff] |
Add suggestion reason ACCOUNT Bug: 72817785 Test: Unit tests PiperOrigin-RevId: 184178722 Change-Id: I7154058ab7ac1a94adc781a1aa9a49a3f13c1599
diff --git a/java/com/android/dialer/precall/impl/CallingAccountSelector.java b/java/com/android/dialer/precall/impl/CallingAccountSelector.java index e928329..8d7d759 100644 --- a/java/com/android/dialer/precall/impl/CallingAccountSelector.java +++ b/java/com/android/dialer/precall/impl/CallingAccountSelector.java
@@ -266,7 +266,7 @@ hints.add(context.getString(R.string.pre_call_select_phone_account_hint_frequent)); break; default: - throw Assert.createAssertionFailException("unexpected reason " + suggestion.reason); + LogUtil.w("CallingAccountSelector.buildHint", "unhandled reason " + suggestion.reason); } } return hints;
diff --git a/java/com/android/dialer/preferredsim/suggestion/SuggestionProvider.java b/java/com/android/dialer/preferredsim/suggestion/SuggestionProvider.java index bb50889..abb6e98 100644 --- a/java/com/android/dialer/preferredsim/suggestion/SuggestionProvider.java +++ b/java/com/android/dialer/preferredsim/suggestion/SuggestionProvider.java
@@ -36,6 +36,8 @@ // The user has select the SIM for this category of calls (contacts from certain accounts, // etc.). USER_SET, + // The user has selected the SIM for all contacts on the account. + ACCOUNT, } /** The suggestion. */