Search in sources :

Example 6 with CacheDataUpdatedTask

use of com.android.launcher3.model.CacheDataUpdatedTask in project android_packages_apps_Trebuchet by LineageOS.

the class LauncherModel method onUpdateSessionDisplay.

/**
 * Updates the icons and label of all pending icons for the provided package name.
 */
@Override
public void onUpdateSessionDisplay(PackageUserKey key, PackageInstaller.SessionInfo info) {
    mApp.getIconCache().updateSessionCache(key, info);
    HashSet<String> packages = new HashSet<>();
    packages.add(key.mPackageName);
    enqueueModelUpdateTask(new CacheDataUpdatedTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, key.mUser, packages));
}
Also used : CacheDataUpdatedTask(com.android.launcher3.model.CacheDataUpdatedTask) HashSet(java.util.HashSet)

Example 7 with CacheDataUpdatedTask

use of com.android.launcher3.model.CacheDataUpdatedTask in project android_packages_apps_Launcher3 by ProtonAOSP.

the class LauncherModel method onUpdateSessionDisplay.

/**
 * Updates the icons and label of all pending icons for the provided package name.
 */
@Override
public void onUpdateSessionDisplay(PackageUserKey key, PackageInstaller.SessionInfo info) {
    mApp.getIconCache().updateSessionCache(key, info);
    HashSet<String> packages = new HashSet<>();
    packages.add(key.mPackageName);
    enqueueModelUpdateTask(new CacheDataUpdatedTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, key.mUser, packages));
}
Also used : CacheDataUpdatedTask(com.android.launcher3.model.CacheDataUpdatedTask) HashSet(java.util.HashSet)

Aggregations

CacheDataUpdatedTask (com.android.launcher3.model.CacheDataUpdatedTask)7 HashSet (java.util.HashSet)7