diff options
author | Yorke Lee <yorkelee@google.com> | 2015-09-04 21:59:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-04 21:59:13 +0000 |
commit | 27031077952a07e9203c3f4594ae6ae6ec7ba108 (patch) | |
tree | 11bdc0a16fb2b4102a27e1e4a771a3aab9ad1b74 /src/com/android/dialer/list | |
parent | 2d3b34d2392f9a4e8a5c87d8148a0892659a7df6 (diff) | |
parent | cac1184258e9692aa22f44444360b350e6e0e8ca (diff) |
Merge "Send notification when permission granted in search" into ub-contactsdialer-a-dev
Diffstat (limited to 'src/com/android/dialer/list')
-rw-r--r-- | src/com/android/dialer/list/RegularSearchFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/RegularSearchFragment.java b/src/com/android/dialer/list/RegularSearchFragment.java index b7e26d690..c715de8ca 100644 --- a/src/com/android/dialer/list/RegularSearchFragment.java +++ b/src/com/android/dialer/list/RegularSearchFragment.java @@ -113,6 +113,10 @@ public class RegularSearchFragment extends SearchFragment int[] grantResults) { if (requestCode == READ_CONTACTS_PERMISSION_REQUEST_CODE) { setupEmptyView(); + if (grantResults != null && grantResults.length == 1 + && PackageManager.PERMISSION_GRANTED == grantResults[0]) { + PermissionsUtil.notifyPermissionGranted(getActivity(), READ_CONTACTS); + } } } } |