When resuming device, If there is changed the detect state, then update the detect state. Change-Id: I9f5fa06e3c82a51768d9e805127526a84f0df65f
When resuming device, If there is changed the detect state, then update the detect state. Change-Id: I9f5fa06e3c82a51768d9e805127526a84f0df65f