Search in sources :

Example 1 with CacheDataUpdatedTask

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

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 2 with CacheDataUpdatedTask

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

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 3 with CacheDataUpdatedTask

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

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 4 with CacheDataUpdatedTask

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

the class LauncherModel method updateSessionDisplayInfo.

/**
 * Updates the icons and label of all pending icons for the provided package name.
 */
public void updateSessionDisplayInfo(final String packageName, final UserHandle user) {
    HashSet<String> packages = new HashSet<>();
    packages.add(packageName);
    enqueueModelUpdateTask(new CacheDataUpdatedTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, user, packages));
}
Also used : CacheDataUpdatedTask(com.android.launcher3.model.CacheDataUpdatedTask) HashSet(java.util.HashSet)

Example 5 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)

Aggregations

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