Inspectopedia Help

Incompatible setRequestedOrientation value

Incompatible setRequestedOrientation value

The Activity should not be locked to a portrait orientation so that users can take advantage of the multi-window environments and larger landscape-first screens that Android runs on such as ChromeOS, tablets, and foldables. To fix the issue, consider calling setRequestedOrientation with the ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR or ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED options or removing the call all together.

Issue id: SourceLockedOrientationActivity

https://developer.android.com/guide/topics/large-screens/large-screen-cookbook#restricted_app_orientation

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023