OSDN Git Service

Fix in SdkSources.
authorPierre Zurek <pierrezurek@gmail.com>
Sat, 15 Jan 2011 13:45:21 +0000 (14:45 +0100)
committerPierre Zurek <pierrezurek@gmail.com>
Sat, 15 Jan 2011 14:15:09 +0000 (15:15 +0100)
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: I8f52800ac8f9b717b45a7d0d509b1f15915b9f03

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