}
public void updatePackageState(ArrayList<PackageInstallInfo> installInfos) {
- HashSet<String> completedPackages = new HashSet<>();
+ HashSet<String> completedPackages = new HashSet<String>();
for (final PackageInstallInfo installInfo : installInfos) {
mapOverItems(MAP_RECURSE, new ItemOperator() {
return;
}
mReplayPending = false;
- ArrayList<PackageInstallInfo> updates = new ArrayList<>();
+ ArrayList<PackageInstallInfo> updates = new ArrayList<PackageInstallInfo>();
for (String packageName: mPrefs.getAll().keySet()) {
final String json = mPrefs.getString(packageName, null);
if (!TextUtils.isEmpty(json)) {
replayUpdates();
} else {
LauncherAppState app = LauncherAppState.getInstanceNoCreate();
- ArrayList<PackageInstallInfo> update = new ArrayList<>();
+ ArrayList<PackageInstallInfo> update = new ArrayList<PackageInstallInfo>();
update.add(installInfo);
sendUpdate(app, update);
}
private static final String TAG = "PackageInstallerCompatVL";
private static final boolean DEBUG = false;
- private final SparseArray<InstallSessionInfo> mPendingReplays = new SparseArray<>();
+ private final SparseArray<InstallSessionInfo> mPendingReplays = new SparseArray<InstallSessionInfo>();
private final PackageInstaller mInstaller;
private boolean mResumed;
return;
}
- ArrayList<PackageInstallInfo> updates = new ArrayList<>();
+ ArrayList<PackageInstallInfo> updates = new ArrayList<PackageInstallInfo>();
if (newInfo != null) {
updates.add(newInfo);
}