OSDN Git Service

Make the default skin a bit more dynamic based on the platform.
authorXavier Ducrohet <xav@android.com>
Sun, 16 Jan 2011 21:20:09 +0000 (13:20 -0800)
committerXavier Ducrohet <xav@android.com>
Sun, 16 Jan 2011 21:20:09 +0000 (13:20 -0800)
Change-Id: I37db0034cc106b573f0efb844cae074cb63ba588

sdkmanager/libs/sdklib/src/com/android/sdklib/PlatformTarget.java

index 2a22d0a..e14af0b 100644 (file)
@@ -178,8 +178,17 @@ final class PlatformTarget implements IAndroidTarget {
     }
 
     public String getDefaultSkin() {
-        // at this time, this is the default skin for all the platform.
-        return "HVGA";
+        if (mSkins.length == 1) {
+            return mSkins[0];
+        }
+
+        if (mVersion.getApiLevel() >= 4) {
+            // at this time, this is the default skin for all the platforms.
+            // TODO: make it configurable using a file in the platform folder.
+            return "WVGA800";
+        }
+
+        return "HVGA"; // this is for 1.5 and earlier.
     }
 
     /**