mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 17:52:45 +01:00
Ignore webview init exceptions (#1124)
This commit is contained in:
parent
1fdbdf34b9
commit
a063aabc7c
@ -86,7 +86,11 @@ class WulkanowyApp : Application(), Configuration.Provider {
|
|||||||
|
|
||||||
private fun fixWebViewLocale() {
|
private fun fixWebViewLocale() {
|
||||||
//https://stackoverflow.com/questions/40398528/android-webview-language-changes-abruptly-on-android-7-0-and-above
|
//https://stackoverflow.com/questions/40398528/android-webview-language-changes-abruptly-on-android-7-0-and-above
|
||||||
WebView(this).destroy()
|
try {
|
||||||
|
WebView(this).destroy()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
//Ignore exceptions
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getWorkManagerConfiguration() = Configuration.Builder()
|
override fun getWorkManagerConfiguration() = Configuration.Builder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user