From f6f8b3a845fe4593605a386bcb40d055e0bdda17 Mon Sep 17 00:00:00 2001 From: Stephen Bird Date: Mon, 9 May 2016 17:57:39 -0700 Subject: [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. Change-Id: I3494e71d9d9554298ded352da062c3de7faf6824 --- .../com/android/phone/common/incall/ContactsDataSubscription.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src-ambient/com/android/phone/common/incall/ContactsDataSubscription.java') 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, -- cgit v1.2.3