diff options
Diffstat (limited to 'src/com/android/dialer/list/SmartDialSearchFragment.java')
-rw-r--r-- | src/com/android/dialer/list/SmartDialSearchFragment.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/dialer/list/SmartDialSearchFragment.java b/src/com/android/dialer/list/SmartDialSearchFragment.java index 4f0ce7216..6c521147e 100644 --- a/src/com/android/dialer/list/SmartDialSearchFragment.java +++ b/src/com/android/dialer/list/SmartDialSearchFragment.java @@ -38,11 +38,10 @@ public class SmartDialSearchFragment extends SearchFragment { SmartDialNumberListAdapter adapter = new SmartDialNumberListAdapter(getActivity()); adapter.setUseCallableUri(super.usesCallableUri()); adapter.setQuickContactEnabled(true); - // Disable the direct call shortcut for the smart dial fragment, since the call button - // will already be showing anyway. + // Disable the direct call shortcut. The call button will already be showing. adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_DIRECT_CALL, false); - adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_ADD_NUMBER_TO_CONTACTS, - false); + // Set adapter's query string to restore previous instance state. + adapter.setQueryString(getQueryString()); return adapter; } |