Kill app long press timeout: fix...

…indiscriminately killing in clean installations (2/2)

- Put a method to update state
- include default value in xml file
- fix the code

Change-Id: Id19be32e208084e1e841fc98105ea8b1cac420a9