From ec477b254627fefeb033e1655ae8eb1d2e7fc1dd Mon Sep 17 00:00:00 2001 From: "minkee.lee" Date: Tue, 28 Oct 2014 19:07:45 +0900 Subject: [PATCH] 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 --- .../src/org/tizen/emulator/manager/platform/Platform.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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() -- 2.7.4