Fix not to send duplcated reply
When ok, cancel or back button is pressed,
power_lock_expired_terminate runs first.
It causes duplicated reply.
Current problem is as below.
1. User press cancel button
ex) send_result(CLOSE_APP) is executed by power_lock_expired_terminate
send_result(ALLOW_APP) is executed by power_lock_expired_allow_app
2. User choose ok button
ex) send_result(CLOSE_APP) is executed by power_lock_expired_terminate
send_result(CLOSE_APP) is executed by power_lock_expired_close_app
So, add button_id to fix duplicated reply.
1. User press cancel button
ex) send_result(CLOSE_APP) is not executed because button_id is ALLOW_APP
send_result(ALLOW_APP) is executed by power_lock_expired_allow_app
2. User choose ok button
ex) send_result(CLOSE_APP) is not executed because button_id is CLOSE_APP
send_result(CLOSE_APP) is executed by power_lock_expired_close_app
Finally, remove result_sended.
Because result_sended does not work properly.
Change-Id: I43cc267ccc1825cb6f8726645492fc8c6a3c1044
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>