diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-11-20 22:02:10 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-20 22:02:10 +0000 |
commit | 599205c0bfc0107f0d4043aa9582e21e3576dfa4 (patch) | |
tree | c2927e4259bac80faffdf4ebea06445ff88a14da /java | |
parent | 299bc13332e3153fe57bdf83f59d5f82109911cc (diff) | |
parent | 3c8ab7ed43cbda8b0c9620b9edad48e49e61f1be (diff) |
Merge "Add config flag for CallingAccountSelector"
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/precall/impl/CallingAccountSelector.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/com/android/dialer/precall/impl/CallingAccountSelector.java b/java/com/android/dialer/precall/impl/CallingAccountSelector.java index e0fe0c488..d46e31711 100644 --- a/java/com/android/dialer/precall/impl/CallingAccountSelector.java +++ b/java/com/android/dialer/precall/impl/CallingAccountSelector.java @@ -39,6 +39,7 @@ import com.android.dialer.common.Assert; import com.android.dialer.common.LogUtil; import com.android.dialer.common.concurrent.DialerExecutor.Worker; import com.android.dialer.common.concurrent.DialerExecutorComponent; +import com.android.dialer.configprovider.ConfigProviderBindings; import com.android.dialer.precall.PreCallAction; import com.android.dialer.precall.PreCallCoordinator; import com.android.dialer.precall.PreCallCoordinator.PendingAction; @@ -62,6 +63,11 @@ public class CallingAccountSelector implements PreCallAction { @Override public boolean requiresUi(Context context, CallIntentBuilder builder) { + if (!ConfigProviderBindings.get(context) + .getBoolean("precall_calling_account_selector_enabled", true)) { + return false; + } + if (builder.getPhoneAccountHandle() != null) { return false; } |