OSDN Git Service

Merge "Fix in SdkSources."
authorPierre Zurek <pierrezurek@gmail.com>
Sat, 15 Jan 2011 13:45:21 +0000 (14:45 +0100)
committerRaphael Moll <ralf@android.com>
Sat, 15 Jan 2011 18:31:25 +0000 (10:31 -0800)
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

sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/SdkSources.java

index c2ad057..22678b3 100755 (executable)
@@ -275,8 +275,8 @@ public class SdkSources {
 \r
             int count = 0;\r
             for (SdkSource s : getSources(SdkSourceCategory.USER_ADDONS)) {\r
-                count++;\r
                 props.setProperty(String.format("%s%02d", KEY_SRC, count), s.getUrl());  //$NON-NLS-1$\r
+                count++;\r
             }\r
             props.setProperty(KEY_COUNT, Integer.toString(count));\r
 \r