summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-04-29 19:01:28 -0700
committerYorke Lee <yorkelee@google.com>2014-04-29 19:01:28 -0700
commit04e585d965c0695cf2c9c6ba1a667ac7e9222172 (patch)
tree020397e34f5d32c84b78b02f00db7eb2b7ebb7b2
parent87cf81d2608fd4fa7b3e254c6ea1b509ff5bcc54 (diff)
Disable Add to contact shortcut in SmartDialListFragment
Bug: 14324064 Change-Id: Ic477211aae2270b0afa3698a33c4fbe162b0f536
-rw-r--r--src/com/android/dialer/list/SmartDialSearchFragment.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/SmartDialSearchFragment.java b/src/com/android/dialer/list/SmartDialSearchFragment.java
index 0efe9186b..4f0ce7216 100644
--- a/src/com/android/dialer/list/SmartDialSearchFragment.java
+++ b/src/com/android/dialer/list/SmartDialSearchFragment.java
@@ -41,6 +41,8 @@ public class SmartDialSearchFragment extends SearchFragment {
// Disable the direct call shortcut for the smart dial fragment, since the call button
// will already be showing anyway.
adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_DIRECT_CALL, false);
+ adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_ADD_NUMBER_TO_CONTACTS,
+ false);
return adapter;
}