diff options
author | Raphael <raphael@google.com> | 2009-06-16 12:12:08 -0700 |
---|---|---|
committer | Raphael <raphael@google.com> | 2009-06-16 12:12:08 -0700 |
commit | 0808cedded314d36b52a2ae1a03b6972a23d822f (patch) | |
tree | 90eed896044a82aaf554f77a9f11a5288b33adad | |
parent | 9ebd6244a848fb8a5a081fe9b00df34c1b2ee9b1 (diff) | |
download | sdk-0808cedded314d36b52a2ae1a03b6972a23d822f.zip sdk-0808cedded314d36b52a2ae1a03b6972a23d822f.tar.gz sdk-0808cedded314d36b52a2ae1a03b6972a23d822f.tar.bz2 |
SDK Updater: automatically accept packages with no license.
-rwxr-xr-x | sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdateChooserDialog.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdateChooserDialog.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdateChooserDialog.java index 19d1e8c..f193554 100755 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdateChooserDialog.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdateChooserDialog.java @@ -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
|