summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2019-06-10 14:20:58 -0700
committerWinson Chung <winsonc@google.com>2019-06-10 14:20:58 -0700
commit8758311c2af2da1a78332f187d1461804d92a6ed (patch)
tree0721f2c29885e08ee47cead8441968ecf827688f /src/com/android/launcher3/Launcher.java
parentc25d97534276057341f1d3b761af6013e83fc9dd (diff)
downloadandroid_packages_apps_Trebuchet-8758311c2af2da1a78332f187d1461804d92a6ed.tar.gz
android_packages_apps_Trebuchet-8758311c2af2da1a78332f187d1461804d92a6ed.tar.bz2
android_packages_apps_Trebuchet-8758311c2af2da1a78332f187d1461804d92a6ed.zip
Defer listening for notification changes until resume
Bug: 134964922 Test: Take a systrace while swiping up, ensure there are no resource icon loads other than the icon for the current app while launcher is starting Change-Id: I469a2089df02434918125b005cd795f5514ec389
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 57a9b161f..ca410aa4d 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -888,7 +888,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
mLauncherCallbacks.onStart();
}
mAppWidgetHost.setListenIfResumed(true);
- NotificationListener.setNotificationsChangedListener(mPopupDataProvider);
RaceConditionTracker.onEvent(ON_START_EVT, EXIT);
}
@@ -908,6 +907,9 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
// Refresh shortcuts if the permission changed.
mModel.refreshShortcutsIfRequired();
+ // Set the notification listener and fetch updated notifications when we resume
+ NotificationListener.setNotificationsChangedListener(mPopupDataProvider);
+
DiscoveryBounce.showForHomeIfNeeded(this);
if (mPendingActivityRequestCode != -1 && isInState(NORMAL)) {