Search in sources :

Example 1 with AddWorkspaceItemsTask

use of com.android.launcher3.model.AddWorkspaceItemsTask in project Neo-Launcher by NeoApplications.

the class LauncherModel method addAndBindAddedWorkspaceItems.

/**
 * Adds the provided items to the workspace.
 */
public void addAndBindAddedWorkspaceItems(List<Pair<ItemInfo, Object>> itemList) {
    Callbacks callbacks = getCallback();
    if (callbacks != null) {
        callbacks.preAddApps();
    }
    enqueueModelUpdateTask(new AddWorkspaceItemsTask(itemList));
}
Also used : Callbacks(com.android.launcher3.model.BgDataModel.Callbacks) AddWorkspaceItemsTask(com.android.launcher3.model.AddWorkspaceItemsTask)

Aggregations

AddWorkspaceItemsTask (com.android.launcher3.model.AddWorkspaceItemsTask)1 Callbacks (com.android.launcher3.model.BgDataModel.Callbacks)1