diff options
author | twyen <twyen@google.com> | 2017-11-13 14:57:58 -0800 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-18 04:21:45 +0000 |
commit | a1c046f99a353985f41d2b0d9cecf31d53364ee6 (patch) | |
tree | d79faaba4496b80182d6d2a17efd96e4880c3a25 /java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java | |
parent | bee76bf00cfa677fc85c643b53af0cfebee3e2e1 (diff) |
Implement preferred SIM
Before prompting the user to select the SIM, CallingAccountSelector will lookup the fallback preferred SIM database to see if a preferred SIM is already set and bypass the selection. If the number is in contacts the user will also have the option to store the selected SIM as preferred.
Bug: 64213352
Test: CallingAccountSelectorTest
PiperOrigin-RevId: 175592732
Change-Id: I6a5a8ad8772eccfb4a119c529dcd3945b9dc0b1e
Diffstat (limited to 'java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java')
-rw-r--r-- | java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java b/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java index 6c6aebc0b..e21fded97 100644 --- a/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java +++ b/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java @@ -123,6 +123,11 @@ public class SelectPhoneAccountDialogFragment extends DialogFragment { return mListener; } + @VisibleForTesting + public boolean canSetDefault() { + return getArguments().getBoolean(ARG_CAN_SET_DEFAULT); + } + @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); |