В моем манифесте я настроил действие, ограниченное портретной ориентацией. Но мне нужно снять это ограничение по условию. Итак, как мне программно удалить ограничения ориентации?
upd: мои текущие настройки:
<activity
android:name=".activity.MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait"
android:configChanges="orientation">
/**
* Defines whether the device being used is a tablet and if so adds horizontal orientation option.
*/
protected void _updateScreenOrientationModes(){
if(((MyApplication) getApplication())._isTablet == true)
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
}