Added preference endWhenUnlocked to screen event preferences.