summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-02-05 20:01:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-05 20:01:04 +0000
commit43ad47efc87a2c83090b2f94019955a2021160dd (patch)
tree96ed72f4c089999eb28f59cd1e523efb7e35a3c6 /src
parentd71ecfd87343283b4d49902fb1e0e435f7dadb9a (diff)
parent5781d3568539f42aa35283633d5fced851cc7be9 (diff)
Merge "Set adapter's query string to restore state."
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/SmartDialSearchFragment.java7
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;
}