From ed97319fd3628bc2dc9ae92fea4690f593fca80d Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Mon, 11 May 2015 16:12:15 +0900 Subject: [PATCH] touch: added return value checking Change-Id: I6a850a7a65b1b1fceef70bb33c2752d897f2ba9a Signed-off-by: GiWoong Kim --- .../skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java index 408ff78..ca327ce 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java @@ -656,13 +656,14 @@ public class EmulatorShmSkin extends EmulatorSkin { * while display dragging. */ if (fingers.getFingerCnt() == 0 && pressingX != -1 && pressingY != -1 && pressingOriginX != -1 && pressingOriginY != -1) { - fingers.addFingerPoint( + if (fingers.addFingerPoint( pressingOriginX, pressingOriginY, - pressingX, pressingY); + pressingX, pressingY) != -1) { + displayCanvas.redraw(); + } + pressingX = pressingY = -1; pressingOriginX = pressingOriginY = -1; - - displayCanvas.redraw(); } logger.info("enable multi-touch mode 1"); -- 2.7.4