Removing static state management from the install shortcut queue
Change-Id: I0b74a843b2081ee314e0840d5ea8ab8ddabde32b
This commit is contained in:
1 parent
73f0c3698f
commit
60e68c91e9
8 files changed
+113
-65
No files matched your search
@@ -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