Commit ff5d05e0 authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :多多菜园
[实现方案] :1.0.2_修复Can't set data directory suffix: WebView already initialized
parent 99277a1b
......@@ -47,12 +47,12 @@ class BaseApplication : MultiDexApplication() {
// .Build()
// );
//TODO Android 9及以上必须设置 (聚合快手时必须添加)
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// val processName = Application.getProcessName()
// if (packageName != processName) {
// WebView.setDataDirectorySuffix(processName)
// }
// }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
val processName = Application.getProcessName()
if (packageName != processName) {
WebView.setDataDirectorySuffix(processName)
}
}
UMConfigure.setLogEnabled(true)
UMConfigure.init(this, "5f9bb48945b2b751a91fb2d5", "", UMConfigure.DEVICE_TYPE_PHONE, "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment