From: lokilee73 Date: Mon, 12 Dec 2016 02:09:07 +0000 (+0900) Subject: fix wrong condition for exception case X-Git-Tag: submit/tizen_3.0/20161212.050116~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5af2be43a6b4c74eeaf076d09a3a53e19c5b326a;p=platform%2Fcore%2Fsystem%2Fsystem-popup.git fix wrong condition for exception case Change-Id: I3ae21806c4da3a87ae1dfe9f41ad33a308e107dc Signed-off-by: lokilee73 --- diff --git a/src/powerkey/powerkey-wearable.c b/src/powerkey/powerkey-wearable.c index 0dd614d..21d298f 100755 --- a/src/powerkey/powerkey-wearable.c +++ b/src/powerkey/powerkey-wearable.c @@ -442,7 +442,7 @@ static void set_flight_icon(int value) { int ret = 0; - if (value > 1 && value < 0) { + if (value > 1 || value < 0) { _E("Invalid VCONFKEY_TELEPHONY_FLIGHT_MODE value"); return; }