From: minkee.lee Date: Tue, 28 Oct 2014 10:07:45 +0000 (+0900) Subject: Image-list: Default image is added at first index of image-list. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec477b254627fefeb033e1655ae8eb1d2e7fc1dd;p=sdk%2Femulator%2Femulator-manager.git Image-list: Default image is added at first index of image-list. - We may know which image is default through image's info file. (info.ini) Change-Id: I11c50f50c478098f7ff8fb012e00d050328fcdba Signed-off-by: minkee.lee --- diff --git a/common-project/src/org/tizen/emulator/manager/platform/Platform.java b/common-project/src/org/tizen/emulator/manager/platform/Platform.java index 0d40c8f..dfc2666 100644 --- a/common-project/src/org/tizen/emulator/manager/platform/Platform.java +++ b/common-project/src/org/tizen/emulator/manager/platform/Platform.java @@ -160,7 +160,15 @@ public class Platform { throw new IOException(); } } - imageList.add(image); + + // Default image is added at first index of image-list. + String imageType = image.getType(); + if (imageType != null && imageType.equals("default")) { + imageList.add(0, image); + + } else { + imageList.add(image); + } } catch (IOException e) { EMLogger.getLogger().warning("Failed adding base image.." + StringResources.NEW_LINE + "Base Disk Image Path: " + path.getAbsolutePath()