Commit a9757497 authored by moyy's avatar moyy
Browse files

bug修复:底层包名。

parent e4c25aa9
Showing with 1 addition and 3 deletions
+1 -3
......@@ -49,9 +49,7 @@ class JSIntercept(ynWebView: YNWebView) {
val pm = mActivity.applicationContext.packageManager
val info = pm.getPackageInfo(mActivity.applicationContext.packageName, 0)
version = info.versionName
pkg = mActivity.packageName
pkg = pkg.replace('.', '_')
} catch (e: Exception) {
e.printStackTrace()
}
......
......@@ -177,7 +177,7 @@ class AndroidWebView constructor(private val ctx: Context, private var uAgent: S
}
}
} catch (e: java.lang.Exception) {
e.printStackTrace()
// e.printStackTrace()
}
return response ?: super.shouldInterceptRequest(view, request)
}
......
Supports Markdown
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