I have added android:screenOrientation="sensorLandscape"
to an activity in my Manifest. And there is no android:configChanges
attribute.
This seems like a bug to me, but now my activity is not being re-created i.e. onCreate()
is not being called when the device is rotated.
Also, onConfigurationChanged()
is not being called either.
Removing the line android:screenOrientation="sensorLandscape"
fixes the problem and the activity is restarted as expected.
Can someone confirm it is a bug, and/or is there a workaround for it?