From 653c3c171374b1ad1a0d9060241f98664a709ed1 Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Fri, 4 Jul 2014 13:47:53 +0900 Subject: [PATCH] menu: modified Shell menu command modified Shell menu command added some disposing check Change-Id: I495de9bf5ee23e7e508bd562f0c439a1812fd9db Signed-off-by: GiWoong Kim --- .../src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java | 1 - .../src/org/tizen/emulator/skin/custom/CustomProgressBar.java | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 3b8e4df..0c62d87 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 @@ -1803,7 +1803,6 @@ public class EmulatorSkin { "emulator-" + portSdb, "-e", sdbPath,"shell"); */ } else { /* Linux */ procSdb.command("/usr/bin/gnome-terminal", - "--disable-factory", "--title=" + SkinUtil.makeEmulatorName(config), "-x", sdbPath, "-s", "emulator-" + portSdb, "shell"); } diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomProgressBar.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomProgressBar.java index ab53bf5..5601ed4 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomProgressBar.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomProgressBar.java @@ -82,7 +82,9 @@ public class CustomProgressBar extends Canvas { parent.getDisplay().asyncExec(new Runnable() { @Override public void run() { - setVisible(false); + if (isDisposed() == false) { + setVisible(false); + } } }); } @@ -145,7 +147,9 @@ public class CustomProgressBar extends Canvas { parent.getDisplay().syncExec(new Runnable() { @Override public void run() { - setVisible(true); + if (isDisposed() == false) { + setVisible(true); + } } }); } -- 2.7.4