akexorcist / Localization

[Android] In-app language changing library
Apache License 2.0
983 stars 154 forks source link

ANR issue when getString() #117

Open Stupidman22 opened 3 years ago

Stupidman22 commented 3 years ago

Edit: Version 1.2.9 I have more log ANR with this issue. Any one face this problem ? Type "main" prio=5 tid=1 Blocked at android.app.ResourcesManager.getAdjustedDisplay (ResourcesManager.java:327) at android.app.ContextImpl.getDisplayNoVerify (ContextImpl.java:2536) at android.app.ContextImpl.getDisplayId (ContextImpl.java:2545) at android.app.ContextImpl.createConfigurationContext (ContextImpl.java:2412) at android.content.ContextWrapper.createConfigurationContext (ContextWrapper.java:972) at com.akexorcist.localizationactivity.core.LocalizationUtility.getResources at com.akexorcist.localizationactivity.core.LocalizationApplicationDelegate.getResources at com.akexorcist.localizationactivity.ui.LocalizationApplication.getResources at android.content.Context.getString (Context.java:645)

akexorcist commented 2 years ago

Since AndroidX AppCompat has per-app language preferences for backward compatibility. Please migrate this library to AndroidX for more stability, compatibility, and longer support from Google team.

See Migrate to AndroidX guide

Thank you for your support