|
@@ -9,6 +9,7 @@ import android.content.Intent
|
|
|
import android.content.IntentFilter
|
|
|
import android.content.res.Configuration
|
|
|
import android.os.Build
|
|
|
+import android.webkit.WebView
|
|
|
import androidx.core.app.NotificationManagerCompat
|
|
|
import androidx.core.content.getSystemService
|
|
|
import androidx.lifecycle.Lifecycle
|
|
@@ -56,6 +57,12 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory {
|
|
|
Security.insertProviderAt(Conscrypt.newProvider(), 1)
|
|
|
}
|
|
|
|
|
|
+ // Avoid potential crashes
|
|
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
|
+ val process = getProcessName()
|
|
|
+ if (packageName != process) WebView.setDataDirectorySuffix(process)
|
|
|
+ }
|
|
|
+
|
|
|
Injekt.importModule(AppModule(this))
|
|
|
|
|
|
setupAcra()
|