mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Removing static state management from the install shortcut queue
Change-Id: I0b74a843b2081ee314e0840d5ea8ab8ddabde32b
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.pm.PackageManager;
|
||||
import android.os.UserHandle;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.launcher3.model.ItemInstallQueue;
|
||||
import com.android.launcher3.pm.InstallSessionHelper;
|
||||
|
||||
/**
|
||||
@@ -59,7 +60,8 @@ public class SessionCommitReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
InstallShortcutReceiver.queueApplication(info.getAppPackageName(), user, context);
|
||||
ItemInstallQueue.INSTANCE.get(context)
|
||||
.queueItem(info.getAppPackageName(), user);
|
||||
}
|
||||
|
||||
public static boolean isEnabled(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user