mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Removing static instance of LauncherAppsCompat and unnecessary wrapper classes
Bug: 141376165 Change-Id: I8c1f1ab7d83ec50fe9c7bf39960ef9c360025ec7
This commit is contained in:
@@ -17,6 +17,7 @@ package com.android.launcher3.model;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.pm.LauncherActivityInfo;
|
||||
import android.content.pm.LauncherApps;
|
||||
import android.content.pm.PackageInstaller.SessionInfo;
|
||||
import android.os.UserHandle;
|
||||
import android.util.LongSparseArray;
|
||||
@@ -31,7 +32,6 @@ import com.android.launcher3.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.LauncherModel.CallbackTask;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.WorkspaceItemInfo;
|
||||
import com.android.launcher3.compat.LauncherAppsCompat;
|
||||
import com.android.launcher3.model.BgDataModel.Callbacks;
|
||||
import com.android.launcher3.pm.PackageInstallerCompat;
|
||||
import com.android.launcher3.util.GridOccupancy;
|
||||
@@ -90,7 +90,7 @@ public class AddWorkspaceItemsTask extends BaseModelUpdateTask {
|
||||
|
||||
PackageInstallerCompat packageInstaller =
|
||||
PackageInstallerCompat.getInstance(app.getContext());
|
||||
LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(app.getContext());
|
||||
LauncherApps launcherApps = app.getContext().getSystemService(LauncherApps.class);
|
||||
|
||||
for (ItemInfo item : filteredItems) {
|
||||
// Find appropriate space for the item.
|
||||
|
||||
Reference in New Issue
Block a user