What is the code to disable rotating an app when a user changes their device orientation from vertical to horizonal or vice versa? I want my app to be able to rotate the app by default, but I want users to be able to select a setting that will disable rotating the app if the device orientation changes.