Add option to lock the screen when no activity is set