display: no need to additional updating before completed booting
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 19 Apr 2013 13:24:43 +0000 (22:24 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 19 Apr 2013 13:26:16 +0000 (22:26 +0900)
no need to additional updating before completed booting.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/layout/GeneralPurposeSkinComposer.java
tizen/src/skin/client/src/org/tizen/emulator/skin/layout/PhoneShapeSkinComposer.java

index 1d05518..8a86922 100644 (file)
@@ -369,12 +369,14 @@ public class GeneralPurposeSkinComposer implements ISkinComposer {
                                if (currentState.isNeedToUpdateDisplay() == true) {
                                        currentState.setNeedToUpdateDisplay(false);
 
-                                       /* Let's do one more update for sdl display surface
-                                       while skipping of framebuffer drawing */
-                                       DisplayStateData lcdStateData = new DisplayStateData(
-                                                       currentState.getCurrentScale(), currentState.getCurrentRotationId());
-                                       skin.communicator.sendToQEMU(
-                                                       SendCommand.CHANGE_LCD_STATE, lcdStateData, false);
+                                       if (skin.communicator.isSensorDaemonStarted() == true) {
+                                               /* Let's do one more update for sdl display surface
+                                               while skipping of framebuffer drawing */
+                                               DisplayStateData lcdStateData = new DisplayStateData(
+                                                               currentState.getCurrentScale(), currentState.getCurrentRotationId());
+                                               skin.communicator.sendToQEMU(
+                                                               SendCommand.CHANGE_LCD_STATE, lcdStateData, false);
+                                       }
                                }
 
                                /* general shell does not support native transparency,
index 42906ba..4893361 100644 (file)
@@ -275,12 +275,14 @@ public class PhoneShapeSkinComposer implements ISkinComposer {
                                        currentState.setNeedToUpdateDisplay(false);
                                        lcdCanvas.setBounds(currentState.getDisplayBounds());
 
-                                       /* Let's do one more update for sdl display surface
-                                       while skipping of framebuffer drawing */
-                                       DisplayStateData lcdStateData = new DisplayStateData(
-                                                       currentState.getCurrentScale(), currentState.getCurrentRotationId());
-                                       skin.communicator.sendToQEMU(
-                                                       SendCommand.CHANGE_LCD_STATE, lcdStateData, false);
+                                       if (skin.communicator.isSensorDaemonStarted() == true) {
+                                               /* Let's do one more update for sdl display surface
+                                               while skipping of framebuffer drawing */
+                                               DisplayStateData lcdStateData = new DisplayStateData(
+                                                               currentState.getCurrentScale(), currentState.getCurrentRotationId());
+                                               skin.communicator.sendToQEMU(
+                                                               SendCommand.CHANGE_LCD_STATE, lcdStateData, false);
+                                       }
                                }
 
                                /* general shell does not support native transparency,