I have found the solution after experiencing a similar problem myself. What happened is the phone thinks it has the s view cover on. When there is a change in light setting it thinks the s view cover was opened so it unlock the phone for you. To disable this feature you would go to Settings >...