Comments (11)
@Stupidman22 @huunhan18pro @CNdev16 I resolved this issue.
You have to create a webview instance (programmatically) and destroy it. (just do it in on create).
Find the helper class in the below link.
Not sure why it behaves like this. but it solved my problem.
Crash happens only if you inflate a webview via XML (first instance).
Not sure, but maybe it is something to do with not refreshing application context after language change.
Please let me know if it resolves your issue.
from localization.
@nagesh-kashyap-r : In my case the webview is Native ads of google. It load in activity first time. I try to using your solution. But it FC. I think I did something wrong :( ...
from localization.
I also get the same issue. Only for the first time. The library is very good. I could change any language on my app. But I got this issue. Hope you fix it soon. Ver 1.2.10 and Android 7.0
from localization.
@akexorcist i'm facing same issue. App crashes for first time.
from localization.
@akexorcist I found the scenario. if I change locale after retuning a different locale from getDefaultLanguage(base: Context). (for very first time)
from localization.
any one have solution for this. The same issue here
from localization.
from localization.
The problem cause when using web view and override this function at application
override fun getDefaultLanguage(): Locale {
return Locale.getDefault()
}
--> any one try to reproduce and fix issue pls. I think this is critical issue
from localization.
@Stupidman22 I solved the exact same issue by just creating an WebView() object.
Like WebView(context).destroy() ->> in onCreate() of activity
Did you try this?
from localization.
This issue was fixed in 1.2.11. Please check it out
from localization.
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.
Thank you for your support
from localization.
Related Issues (20)
- getDefaultLanguage should have access to a context.
- Cannot us setLanguage in PreferenceFragmentCompat HOT 2
- AppCompat's DayNight theme does not apply when toggle the dark mode in v1.2.10 HOT 1
- it is make hyper pay it online payment get way stop ! HOT 2
- LocalizationActivity >= 1.2.6 does not work with ViewPump
- ANR issue when getString() HOT 1
- App crashes when using WebView even after updating to v1.2.10 HOT 4
- In Activity, onConfigurationChanged function always return one orientation information while rotate the device. HOT 1
- Change Language from Fragment HOT 2
- Library doesn't work in Google Play Internal Testing HOT 1
- Version 1.2.10 - ClassCastException in specific devices (Lenovo, Asus) HOT 4
- Version 1.2.9 => Getting ANR issue in LocalizationActivityDelegate.kt file. HOT 5
- Not working in combination with dagger hilt HOT 3
- java.lang.RuntimeException: Using WebView from more than one process at once HOT 3
- Version 1.2.10 => Caused by android.os.BadParcelableException: ClassNotFoundException when unmarshalling: cf HOT 11
- call setLanguage inside Fragment
- Theme change not working HOT 1
- Crash on checkLocaleChange HOT 1
- Crash - Could not find an Application in the given context [ Android Hilt ] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localization.