mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge "Defer listening for notification changes until resume" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ca29259673
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user