mirror of
https://github.com/gedoor/legado.git
synced 2024-07-04 23:36:56 +08:00
优化
This commit is contained in:
parent
8c939236a8
commit
e5adb67083
|
@ -101,7 +101,11 @@ class CrashHandler(val context: Context) : Thread.UncaughtExceptionHandler {
|
|||
map["MODEL"] = Build.MODEL
|
||||
map["SDK_INT"] = Build.VERSION.SDK_INT.toString()
|
||||
map["RELEASE"] = Build.VERSION.RELEASE
|
||||
map["WebViewUserAgent"] = WebSettings.getDefaultUserAgent(appCtx)
|
||||
map["WebViewUserAgent"] = try {
|
||||
WebSettings.getDefaultUserAgent(appCtx)
|
||||
} catch (e: Throwable) {
|
||||
e.localizedMessage ?: "null"
|
||||
}
|
||||
//获取app版本信息
|
||||
AppConst.appInfo.let {
|
||||
map["versionName"] = it.versionName
|
||||
|
|
Loading…
Reference in New Issue
Block a user