From 509d10850c863c004cadc9b862bb607b637bad83 Mon Sep 17 00:00:00 2001 From: Pierre Zurek Date: Sat, 15 Jan 2011 14:45:21 +0100 Subject: [PATCH] Merge "Fix in SdkSources." For User Add-ons, the counter used to save the urls was starting at one while the counter used to load them was starting at zero. Now they all start at zero. Change-Id: Iff5204efe34d69ee8bcc3a4f11c8cc0de4ea7c29 --- .../sdklib/src/com/android/sdklib/internal/repository/SdkSources.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/SdkSources.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/SdkSources.java index c2ad05721..22678b311 100755 --- a/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/SdkSources.java +++ b/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/SdkSources.java @@ -275,8 +275,8 @@ public class SdkSources { int count = 0; for (SdkSource s : getSources(SdkSourceCategory.USER_ADDONS)) { - count++; props.setProperty(String.format("%s%02d", KEY_SRC, count), s.getUrl()); //$NON-NLS-1$ + count++; } props.setProperty(KEY_COUNT, Integer.toString(count)); -- 2.11.0