Add timer for home key event handling 24/181324/8
authorYunjin Lee <yunjin-.lee@samsung.com>
Tue, 12 Jun 2018 02:39:14 +0000 (11:39 +0900)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 28 Aug 2018 04:54:20 +0000 (04:54 +0000)
commitedb2a01570f283a0dccf82aeb08610447c094254
treefd8bef14caaa3f5872245dd13fe43249b253847f
parent3efc27ca415d134c21495f27e67f499a3c971a59
Add timer for home key event handling

- According to the UX guide, the target should show its homescreen
when home key event occurs. It means that, when the event comes,
the caller application should be getting lower and pasued with askuser
popup close. For that reason, askuser shares home key events with
other processes.

And the problem is, some application takes much longer time than askuser
for making themslves invisible. In this situation, user can't avoid
seeing some other layers of the caller app before seeing target
homescreen and it harms UX.

So, added 0.5s of timer for home key event handling.
Maybe there can be a much slower one and 0.5s can be not enough for them
but for now 0.5s seems proper when testing on the target with preloaded applications.

Change-Id: Ibb3b09c7e34acb5ec26c7bfdfbfb11d7862a6da2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
src/notification-daemon/ui/Popupper.cpp