diff options
author | Stephen Bird <sbird@cyngn.com> | 2016-05-09 17:57:39 -0700 |
---|---|---|
committer | Stephen Bird <sbird@cyngn.com> | 2016-05-09 18:01:53 -0700 |
commit | 2d792d815586ebc7c5c9281ede0dcdf7691dcd59 (patch) | |
tree | 96a2f56094801ac884413300900f66f1a3bb0005 | |
parent | 486d1a65c0a588d461b37717bb990d7b65b40439 (diff) | |
download | packages_apps_PhoneCommon-2d792d815586ebc7c5c9281ede0dcdf7691dcd59.tar.gz packages_apps_PhoneCommon-2d792d815586ebc7c5c9281ede0dcdf7691dcd59.tar.bz2 packages_apps_PhoneCommon-2d792d815586ebc7c5c9281ede0dcdf7691dcd59.zip |
[2/2] Don't get directory intent on refresh
Requesting this intent may cause plugins to request permissions
at odd times. Instead, requesting this intent when the button
is clicked will give the user some context when plugin permission
dialogs come up.
Note that the delay caused by requesting this intent when the button
is clicked is fairly indiscernible from caching this intent at
application creation. This action is only presented to the user once
other metadata from the plugin has already been captured, so this
call will happen after the plugin has been instantiated, and should
be performant.
Ticket: CD-561
Change-Id: I3494e71d9d9554298ded352da062c3de7faf6824
(cherry picked from commit f6f8b3a845fe4593605a386bcb40d055e0bdda17)
-rw-r--r-- | src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java b/src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java index d0c17e8..a96047b 100644 --- a/src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java +++ b/src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java @@ -103,7 +103,6 @@ public class ContactsDataSubscription extends DialerDataSubscription { queries.add(InCallQueries.getCallMethodAuthenticated(mClient, componentName)); queries.add(InCallQueries.getCallMethodAccountHandle(mClient, componentName)); queries.add(InCallQueries.getLoginIntent(mClient, componentName)); - queries.add(InCallQueries.getDefaultDirectorySearchIntent(mClient, componentName)); queries.add(InCallQueries.getCallMethodImMimeType(mClient, componentName)); TypedPendingResult fragLogin = NudgeQueries.getNudgeConfig(mClient, mContext, componentName, |