diff options
author | Raphael Moll <ralf@android.com> | 2010-10-19 12:08:26 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-10-19 13:06:33 -0700 |
commit | 74a4e4255f9c7454cb015e7cd3509e17428dcd63 (patch) | |
tree | 83b8d9594ea7d6c535a68f07953b75aa4b5d28e9 | |
parent | ad48420abc49372729dc56fe9790a1eb2c602207 (diff) | |
download | sdk-74a4e4255f9c7454cb015e7cd3509e17428dcd63.zip sdk-74a4e4255f9c7454cb015e7cd3509e17428dcd63.tar.gz sdk-74a4e4255f9c7454cb015e7cd3509e17428dcd63.tar.bz2 |
Integrate 9174add7 into tools_r8. DO NOT MERGE
SDK Manager fix: message to restart after tools update.
The latest CL made this appear after a platform-tools update instead.
Change-Id: Ib52cf88adfb1557c112c3a8153dad536c5932fa3
-rwxr-xr-x | sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java index 4661833..fe51f19 100755 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java @@ -35,6 +35,7 @@ import com.android.sdklib.internal.repository.SdkRepoSource; import com.android.sdklib.internal.repository.SdkSource;
import com.android.sdklib.internal.repository.SdkSourceCategory;
import com.android.sdklib.internal.repository.SdkSources;
+import com.android.sdklib.internal.repository.ToolPackage;
import com.android.sdklib.internal.repository.AddonsListFetcher.Site;
import com.android.sdklib.repository.SdkAddonConstants;
import com.android.sdklib.repository.SdkAddonsListConstants;
@@ -407,6 +408,7 @@ class UpdaterData implements IUpdaterData { monitor.setDescription("Preparing to install archives");
boolean installedAddon = false;
+ boolean installedTools = false;
boolean installedPlatformTools = false;
// Mark all current local archives as already installed.
@@ -466,6 +468,8 @@ class UpdaterData implements IUpdaterData { // Check if we successfully installed a platform-tool or add-on package.
if (archive.getParentPackage() instanceof AddonPackage) {
installedAddon = true;
+ } else if (archive.getParentPackage() instanceof ToolPackage) {
+ installedTools = true;
} else if (archive.getParentPackage() instanceof PlatformToolPackage) {
installedPlatformTools = true;
}
@@ -521,7 +525,7 @@ class UpdaterData implements IUpdaterData { askForAdbRestart(monitor);
}
- if (installedPlatformTools) {
+ if (installedTools) {
notifyToolsNeedsToBeRestarted();
}
|