diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-09 19:17:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-09 19:17:18 +0000 |
commit | 5a4f2468246822fd3eea3eac815a3fd78f3fecef (patch) | |
tree | e839abec40377442f48534c750e9af49730ebd1f | |
parent | 7d52b53df872822d79ec762c43c83c2deba34ac9 (diff) | |
parent | 4cc80e1d83c44ce66a0df318830cb6f45853f900 (diff) |
am 4cc80e1d: am 7aa33279: am 97b8626c: Merge "Update call shortcuts even if contacts permission denied" into mnc-dev
* commit '4cc80e1d83c44ce66a0df318830cb6f45853f900':
Update call shortcuts even if contacts permission denied
-rw-r--r-- | src/com/android/dialer/list/SearchFragment.java | 5 |
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(); } } |