Issue
- Activity 1 created and shown (portrait mode)
- Activity 2 created and shown (portrait mode)
- Rotation (to landscape mode). Activity 2 is recreated as expected
- Press Back
- Activity 1 is shown in portrait mode (landscape mode is expected with Activity 1 recreation)
Why activity is not recreated?
PS. No orientation set or onConfigurationChanged() overriden for Activity 1 in AndroidManifest.xml
Solution
For some reason my colleague added activity.setRequestedOrientation(..) long time ago and it prevented activity from changing orientation.
Answered By - 4ntoine
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.