From 24506db412615a318894c2d37b8a1ca0b0152e4c Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 5 Feb 2013 12:28:25 -0800 Subject: Don't show old matches if no smartdial matches found Change-Id: If851c291273aa5296f1d59edccc83e6d4019be76 --- src/com/android/dialer/dialpad/DialpadFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 77aa57a04..b862f7678 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1698,8 +1698,7 @@ public class DialpadFragment extends Fragment @Override public void setSmartDialAdapterEntries(List data) { - if (data == null || data.isEmpty()) { - // No results found. Keep the last results. + if (data == null) { return; } mSmartDialAdapter.setEntries(data); -- cgit v1.2.3