OSDN Git Service

SDK Manager: fix suggestions of new platforms.
authorRaphael Moll <ralf@android.com>
Thu, 28 Oct 2010 23:41:49 +0000 (16:41 -0700)
committerRaphael Moll <ralf@android.com>
Thu, 28 Oct 2010 23:47:49 +0000 (16:47 -0700)
commitca4d338fa41f41e45502842c06b9dfafe5936ba2
tree6ac569d67c41b7422585da8c963e67897fda7057
parent7fe4b7b04a46c13355509559d88bad24fcc6a5dc
SDK Manager: fix suggestions of new platforms.

I accidentally broke the way the SDK Manager was suggesting
new platforms when I "optimized" the way it was fetching new
sources when resolving dependencies. The fix is that even if
we don't need to refresh or fetch a source, we still need to
report the packages we know it contains.

Also made the Archive and ArchiveInfo implement Comparable
and defer their comparison to the one of Package. This way
we can sort the archives in the install window.

Change-Id: Ic3b39e49e8143541b19b00de09468c1b3f01b0d7
sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/Archive.java
sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/Package.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/ArchiveInfo.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java