From: GiWoong Kim Date: Fri, 5 Dec 2014 05:40:45 +0000 (+0900) Subject: skin: verify a correct VM port range for Color Tag X-Git-Tag: TizenStudio_2.0_p3.0~394^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24b8eafe4e8c1049d454dbff78ca0f08ef0a98a7;p=sdk%2Femulator%2Fqemu.git skin: verify a correct VM port range for Color Tag Change-Id: I4b9606998b6d04c7a8c8d659cbf65f67521634b8 Signed-off-by: GiWoong Kim --- diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index a5fecc4..aea94e5 100755 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -228,9 +228,9 @@ public class EmulatorSkin { } private void setColorVM() { - int portNumber = config.getArgInt(ArgsConstants.VM_BASE_PORT) % 100; + int portNumber = config.getArgInt(ArgsConstants.VM_BASE_PORT); - if (portNumber >= 26200) { + if (portNumber >= 26200 || portNumber <= 0) { Random rand = new Random(); int red = rand.nextInt(255);