You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 22, 2022. It is now read-only.
Selected language not working on switching activities with different orientations. #14
On Wed, Oct 11, 2017 at 12:59 PM, faisal naseer ***@***.***> wrote:
Yes i tried by re-attaching the base context. You can try in particular
activity
@OverRide
protected void attachBaseContext(Context newBase) {
prefS = PreferenceManager.getDefaultSharedPreferences(newBase);
editor = prefS.edit();
mcaGlobal = (MyApp)newBase.getApplicationContext();
if(prefS.getBoolean("LangSet",false)){
if(!prefS.getString("Lang","").equals("")){
mcaGlobal.setLang(prefS.getString("Lang",""));
}
}
lang=mcaGlobal.getLang();
super.attachBaseContext(mContextWrapper.wrap(newBase,lang));
}
On Wed, Oct 11, 2017 at 12:04 PM, vishwas89 ***@***.***>
wrote:
> anybody found solution, I am also facing same issue
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#14 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AO8Ul2KEmL7zgnQ0UsQyvrqD53_qytP3ks5srGhngaJpZM4Ox5U7>
> .
>
Actually i have lot of fragments on Activity 1 and there is another Activity 2 which default orientation to landscape when i return to Activity 1 (which is in PORTRAIT mode containing fragment) all the fragment language get change can you send the full code please please help
Activity
Faisal-Naseer commentedon Sep 12, 2017
did you find any solution, I am facing the same issue?
vishwas89 commentedon Oct 11, 2017
anybody found solution, I am also facing same issue
Faisal-Naseer commentedon Oct 11, 2017
Faisal-Naseer commentedon Oct 11, 2017
vishwas89 commentedon Oct 12, 2017
thanks for the reply
Actually i have lot of fragments on Activity 1 and there is another Activity 2 which default orientation to landscape when i return to Activity 1 (which is in PORTRAIT mode containing fragment) all the fragment language get change can you send the full code please please help
Fix #14 Default language does not work properly