
[Android] Transparent window orientation error.
Go back to the portrait from landscape automatically when the device is rotated.
[Phone state]
Portrait > Device rotate by user. > Landscape > Portrait(Automatically)
-> Deleting 'PlayerConfig', does not automatically change the state.
[manifest.xml]
<activity
android:name=".Activity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:screenOrientation="unspecified"
android:fitsSystemWindows="true"
android:theme="@style/Theme.Transparent"
android:windowSoftInputMode="adjustNothing"/>
[Style.xml]
<style name="Theme.Transparent" parent="@android:style/Theme.Black.NoTitleBar" >
<item name="android:windowIsTranslucent">true</item>
</style>
[activity.java]
.....
mPlayerView.setSkin("jwplayer_style.css");
new KeepScreenOnHandler(mPlayerView, getWindow());
PlayerConfig config = new PlayerConfig.Builder()
.image(image)
.file(vod)
.advertising(advertising)
.autostart(false)
.build();
mPlayerView.setup(config);
....
Any way to solve this?