diff options
author | Nathaniel Waggoner <nwaggoner@cyngn.com> | 2016-06-13 13:51:01 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-06-14 08:50:53 -0700 |
commit | 91468b06102614c4eff14bcb45fcbff90c3c79f6 (patch) | |
tree | 5160501266fd8e0e118c54a7132a23453098535c | |
parent | 2c9893f05182bbc383964b64ad53b9836c9593ba (diff) | |
download | packages_apps_InCallUI-91468b06102614c4eff14bcb45fcbff90c3c79f6.tar.gz packages_apps_InCallUI-91468b06102614c4eff14bcb45fcbff90c3c79f6.tar.bz2 packages_apps_InCallUI-91468b06102614c4eff14bcb45fcbff90c3c79f6.zip |
Stops ModButtonPresenter from hitting PackageManager on UI updates.
This call was causing a lot of log spam on devices without Core, and
may have been contributing a slow down in showing the Call UI.
NOTES-150
Change-Id: Ica37627f22673d5f521e2be164ed05e709bf216f
-rw-r--r-- | src/com/android/incallui/ModButtonPresenter.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/incallui/ModButtonPresenter.java b/src/com/android/incallui/ModButtonPresenter.java index 802e5678..4c7eec1a 100644 --- a/src/com/android/incallui/ModButtonPresenter.java +++ b/src/com/android/incallui/ModButtonPresenter.java @@ -400,9 +400,7 @@ public class ModButtonPresenter extends Presenter<ModButtonPresenter.ModButtonUi List<InCallPluginInfo> contactInCallPlugins = getContactInCallPluginInfoList(); final boolean shouldShowInCall = isProvisioned && contactInCallPlugins != null && !contactInCallPlugins.isEmpty(); - final boolean showNote = isProvisioned && - DeepLinkIntegrationManager.getInstance().ambientIsAvailable(getUi().getContext()) && - mNoteDeepLink != null; + final boolean showNote = isProvisioned && mNoteDeepLink != null; ui.showButton(BUTTON_INCALL, shouldShowInCall); if (shouldShowInCall) { |