AI 143881: AVD #1703143: delete AVDs not loaded correctly.

This covers the case where an AVD has an invalid target
  or is missing its AVD folder or the config.ini in it.
  Made some cosmetic cleanup too.
  BUG=1703143

Automated import of CL 143881
This commit is contained in:
Raphael Moll
2009-03-31 17:21:21 -07:00
committed by The Android Open Source Project
parent 058dad6d77
commit c01f497ad9
4 changed files with 96 additions and 41 deletions

View File

@@ -100,7 +100,7 @@ public class Sdk implements IProjectListener {
ISdkLog log = new ISdkLog() {
public void error(Throwable throwable, String errorFormat, Object... arg) {
if (errorFormat != null) {
logMessages.add(String.format(errorFormat, arg));
logMessages.add(String.format("Error: " + errorFormat, arg));
}
if (throwable != null) {
@@ -109,7 +109,7 @@ public class Sdk implements IProjectListener {
}
public void warning(String warningFormat, Object... arg) {
logMessages.add(String.format(warningFormat, arg));
logMessages.add(String.format("Warning: " + warningFormat, arg));
}
public void printf(String msgFormat, Object... arg) {