SDK Updater: automatically accept packages with no license.

This commit is contained in:
Raphael
2009-06-16 12:12:08 -07:00
parent 128308e01b
commit 6a20ac0953

View File

@@ -277,13 +277,19 @@ final class UpdateChooserDialog extends Dialog {
private void postCreate() {
setWindowImage();
// Automatically accept those with an empty license
for (Archive a : mNewToOldArchiveMap.keySet()) {
String license = a.getParentPackage().getLicense().trim();
if (license.length() == 0) {
mAccepted.add(a);
}
}
// Fill the list with the replacement packages
mTableViewPackage.setLabelProvider(new NewArchivesLabelProvider());
mTableViewPackage.setContentProvider(new NewArchivesContentProvider());
mTableViewPackage.setInput(mNewToOldArchiveMap);
// TODO automatically accept those with an empty license
adjustColumnsWidth();
// select first item