iamjazzar/rosetta

Orientation change switches the language

Opened this issue · 4 comments

I have downloaded the sample APK of yours when i switch the orientation from portrait to landscape the app looses language and gets back to english language if you have switched language to Arabic before in portrait mode

Thank you @Faisal-Naseer for flagging this. The orientation and the locale are tightly coupled in the Android system which is a bit weird in my opinion. However, the current design pattern of the library seems a bit buggy as it causes some problems it shouldn't do. I'm trying now to revisit the code again and to redo it later.

I appreciate :)... I had to attach the base context again...and fixed it accordingly.

I also have this problem. Any solution??