mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
WallpaperManagerCompat should target correct platform
Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
This commit is contained in:
@@ -101,7 +101,7 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
appsList.addPackage(context, packages[i], mUser);
|
||||
|
||||
// Automatically add homescreen icon for work profile apps for below O device.
|
||||
if (!Utilities.isAtLeastO() && !Process.myUserHandle().equals(mUser)) {
|
||||
if (!Utilities.ATLEAST_OREO && !Process.myUserHandle().equals(mUser)) {
|
||||
SessionCommitReceiver.queueAppIconAddition(context, packages[i], mUser);
|
||||
}
|
||||
}
|
||||
@@ -342,7 +342,7 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
callbacks.notifyWidgetProvidersChanged();
|
||||
}
|
||||
});
|
||||
} else if (Utilities.isAtLeastO() && mOp == OP_ADD) {
|
||||
} else if (Utilities.ATLEAST_OREO && mOp == OP_ADD) {
|
||||
// Load widgets for the new package.
|
||||
for (int i = 0; i < N; i++) {
|
||||
dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser));
|
||||
|
||||
Reference in New Issue
Block a user