powerkey popup : unload all powerkey popups before launching new one to prevent getti... 31/107531/1
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 28 Dec 2016 10:31:49 +0000 (19:31 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 28 Dec 2016 10:31:58 +0000 (19:31 +0900)
Change-Id: I93bdf95afb36a2f9e2b29278845909637231d0f0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/powerkey/powerkey-mobile.c

index a5e2b3f..546135c 100755 (executable)
@@ -58,13 +58,8 @@ static char *items[] = {
 
 static void remove_other_powerkey_popups(const struct popup_ops *ops)
 {
-       if (ops != &powerkey_ops)
                unload_simple_popup(&powerkey_ops);
-
-       if (ops != &poweroff_ops)
                unload_simple_popup(&poweroff_ops);
-
-       if (ops != &restart_ops)
                unload_simple_popup(&restart_ops);
 }