[Title] skin path argument handling
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 26 Mar 2012 14:07:49 +0000 (23:07 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 26 Mar 2012 14:07:49 +0000 (23:07 +0900)
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/skin/client/src/org/tizen/emulator/skin/image/ImageRegistry.java

index 07a71fa..b87e2e4 100644 (file)
@@ -124,11 +124,15 @@ public class ImageRegistry {
        }
        
        public static String getSkinPath( String argSkinPath, int lcdWidth, int lcdHeight ) {
-               String skinPath = null;
+               String skinPath = ".." + File.separator + SKIN_FOLDER + File.separator +
+                               IMAGE_FOLDER_PREFIX + lcdWidth + "x" + lcdHeight;
+
+               if (argSkinPath == null) {
+                       return skinPath;
+               }
 
                File f = new File(argSkinPath);
-               if (argSkinPath == null || f.isDirectory() == false) {
-                       skinPath = ".." + File.separator + SKIN_FOLDER + File.separator + IMAGE_FOLDER_PREFIX + lcdWidth + "x" + lcdHeight;
+               if (f.isDirectory() == false) {
                        return skinPath;
                }