diff options
author | wangqi <wangqi@google.com> | 2017-08-04 12:23:32 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-09 11:46:40 -0700 |
commit | c01b1729a02729125f4fd1dd60f26e1cc56c14d3 (patch) | |
tree | 3d6acedc20c37a88fa4ab870c9f2aa10bd7560f5 /java/com | |
parent | 9ce20d0d9da7545b5ef9226e1fc06f9fe2b741e7 (diff) |
Fix strict mode crash on ContactLoader.
Bug: 64314754
Test: manual
PiperOrigin-RevId: 164294241
Change-Id: Ic5d56fc0c1e52eb70ab8b8a22a3ad2cefe03cabf
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/android/contacts/common/model/ContactLoader.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/contacts/common/model/ContactLoader.java b/java/com/android/contacts/common/model/ContactLoader.java index 7ad1f71ac..d2c757709 100644 --- a/java/com/android/contacts/common/model/ContactLoader.java +++ b/java/com/android/contacts/common/model/ContactLoader.java @@ -731,6 +731,7 @@ public class ContactLoader extends AsyncTaskLoader<Contact> { intent.setClassName(servicePackageName, serviceName); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); try { context.startService(intent); } catch (Exception e) { |