Commit 6f4e33f5 by 严久程

测评埋点编辑框

parent 31e14d9c
......@@ -80,13 +80,18 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
val clickPath = map["path"] as String
if (!TextUtils.isEmpty(clickPath)) {
val ownerClass = Class.forName("com.ydl.burypointlib.BuryPointHelper")
val field = ownerClass.getDeclaredField("openEdit")
field.isAccessible = true
val property = field.get(ownerClass)
if (property is Boolean && property) {
BuryPointHelper.showEditDialog(mActivity, clickPath, null)
try {
val ownerClass = Class.forName("com.ydl.burypointlib.BuryPointHelper")
val field = ownerClass.getDeclaredField("openEdit")
field.isAccessible = true
val property = field.get(ownerClass)
if (property is Boolean && property) {
BuryPointHelper.showEditDialog(mActivity, clickPath, null)
}
} catch (e: Exception) {
}
YdlBuryPointUtil.sendClick(clickPath)
}
}
......
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