Fix device rotation not handled when presentationMode is never changed
Update demo project