Commit 6f4e33f5 by 严久程

测评埋点编辑框

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