OSDN Git Service

SDK Manager: fix bug that prevents from installing pkg updates. Do not merge.
authorRaphael <raphael@google.com>
Fri, 7 Oct 2011 20:09:18 +0000 (13:09 -0700)
committerRaphael Moll <raphael@google.com>
Tue, 11 Oct 2011 16:13:19 +0000 (09:13 -0700)
commit1639b002a3d2445a6ebf47ed3ccd4e94a4daa3e5
tree9f23f4b79820d82eff406a2beb54bfa4847422c3
parentf3a1c511c69b5733256e12b5b659e69f006a77fb
SDK Manager: fix bug that prevents from installing pkg updates. Do not merge.

Purely an UI issue, the Install button is not enabled
correctly for updates, thus preventing users from updating.

Patch 2: changed to have the same code used for both
enabling the buttons and actually selecting what to install
or delete. That will avoid inconsistencies.

Also prevented against a few potential NPEs.

(cherry picked from commit 7f0366ad3128d4911517f351d79e1bbea326c862)

Change-Id: I6cf5117409b5b5c70042f93a8f18723383748174
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/SdkUpdaterChooserDialog.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/PackagesDiffLogic.java
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/PackagesPage.java