summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-09 18:36:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-09 18:36:39 +0000
commit97b8626c1205f21d6599c444a939454eb1acbc8b (patch)
tree06b1e4a95f9d9b98513974a0e3f86e584e5a290c
parent95beaae9f908f60d9b7d0ae89474c8cd0129484d (diff)
parent49666139501d3f296f71200bcd9d2b00d9519d82 (diff)
Merge "Update call shortcuts even if contacts permission denied" into mnc-dev
-rw-r--r--src/com/android/dialer/list/SearchFragment.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/SearchFragment.java b/src/com/android/dialer/list/SearchFragment.java
index 106545eaf..77ab29198 100644
--- a/src/com/android/dialer/list/SearchFragment.java
+++ b/src/com/android/dialer/list/SearchFragment.java
@@ -348,6 +348,11 @@ public class SearchFragment extends PhoneNumberPickerFragment {
final DialerPhoneNumberListAdapter adapter =
(DialerPhoneNumberListAdapter) getAdapter();
adapter.disableAllShortcuts();
+ } else {
+ // The contact list is not going to change (we have no results since permissions are
+ // denied), but the shortcuts might because of the different query, so update the
+ // list.
+ getAdapter().notifyDataSetChanged();
}
}