mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Launcher state management cleanup
> Removing Widgets and related states > Fixing different durations being used when opening/closing all-apps > Removing some unnecessary object allocations when changing state without animation > Differentiating widget bootm sheel and full sheet in logs Bug: 67678570 Change-Id: Ic169528736d04ee0b38564b4f96595ba066eabda
This commit is contained in:
@@ -336,17 +336,7 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
});
|
||||
}
|
||||
|
||||
// Notify launcher of widget update. From marshmallow onwards we use AppWidgetHost to
|
||||
// get widget update signals.
|
||||
if (!Utilities.ATLEAST_MARSHMALLOW &&
|
||||
(mOp == OP_ADD || mOp == OP_REMOVE || mOp == OP_UPDATE)) {
|
||||
scheduleCallbackTask(new CallbackTask() {
|
||||
@Override
|
||||
public void execute(Callbacks callbacks) {
|
||||
callbacks.notifyWidgetProvidersChanged();
|
||||
}
|
||||
});
|
||||
} else if (Utilities.ATLEAST_OREO && mOp == OP_ADD) {
|
||||
if (Utilities.ATLEAST_OREO && mOp == OP_ADD) {
|
||||
// Load widgets for the new package. Changes due to app updates are handled through
|
||||
// AppWidgetHost events, this is just to initialize the long-press options.
|
||||
for (int i = 0; i < N; i++) {
|
||||
|
||||
Reference in New Issue
Block a user