Set View.mode directly instead of using the View.switchMode() setter