aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2012-08-06 11:34:00 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-08-06 11:34:01 -0700
commit4c7ffc5b40726fb770c43ae8e15fe5a170ecd394 (patch)
tree9ff540c94408d66bf4ad6b9cb4a671037755e59f
parentd32abac4fdb5b0bfbee00d5c3ab51844a9b15fe1 (diff)
parent64fe39358b3b56135a8954867d752206c593bfc4 (diff)
downloadsdk-4c7ffc5b40726fb770c43ae8e15fe5a170ecd394.zip
sdk-4c7ffc5b40726fb770c43ae8e15fe5a170ecd394.tar.gz
sdk-4c7ffc5b40726fb770c43ae8e15fe5a170ecd394.tar.bz2
Merge "Increment count when backing up bad devices.xml"
-rw-r--r--sdkmanager/libs/sdklib/src/com/android/sdklib/devices/DeviceManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/DeviceManager.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/DeviceManager.java
index c203231..d46ca5f 100644
--- a/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/DeviceManager.java
+++ b/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/DeviceManager.java
@@ -198,7 +198,7 @@ public class DeviceManager {
File renamedConfig = new File(base);
int i = 0;
while (renamedConfig.exists()) {
- renamedConfig = new File(base+"."+i);
+ renamedConfig = new File(base + "." + (i++));
}
mLog.error(null, "Error parsing %1$s, backing up to %2$s",
userDevicesFile.getAbsolutePath(), renamedConfig.getAbsolutePath());