Adding repository for AppsList data
Flag: com.android.launcher3.model_repository Test: atest AppsListRepositoryTest Bug: 390572144 Change-Id: I6e5993c91f77ed8f0b6f2c12c9d743c87a497134
This commit is contained in:
1 parent
42aaacc11f
commit
869b20cb27
16 files changed
+199
-105
No files matched your search
@@ -22,9 +22,9 @@ import android.content.pm.PackageManager;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.android.launcher3.LauncherModel.ModelUpdateTask;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.pm.PackageInstallInfo;
|
||||
import com.android.launcher3.util.FlagOp;
|
||||
import com.android.launcher3.util.InstantAppResolver;
|
||||
|
||||
import java.util.List;
|
||||
@@ -63,13 +63,8 @@ public class PackageInstallStateChangedTask implements ModelUpdateTask {
|
||||
}
|
||||
|
||||
synchronized (apps) {
|
||||
List<AppInfo> updatedAppInfos = apps.updatePromiseInstallInfo(mInstallInfo);
|
||||
if (!updatedAppInfos.isEmpty()) {
|
||||
for (AppInfo appInfo : updatedAppInfos) {
|
||||
taskController.scheduleCallbackTask(
|
||||
c -> c.bindIncrementalDownloadProgressUpdated(appInfo));
|
||||
}
|
||||
}
|
||||
taskController.bindIncrementalUpdates(
|
||||
apps.updatePromiseInstallInfo(mInstallInfo, FlagOp.NO_OP));
|
||||
taskController.bindApplicationsIfNeeded();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user