You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val exposureThread =HandlerThread("ViewTracker_exposure")
@@ -69,7 +65,7 @@ class ExposureManager {
69
65
}
70
66
}
71
67
BATCH_COMMIT_EXPOSURE-> {
72
-
val lock =this.commitLogs
68
+
//val lock = this.commitLogs
73
69
synchronized(lock){
74
70
// Scene 3 (switch back and forth when press Home button) is excluded.
75
71
TrackerUtil.trackExploreData(commitLogs)
@@ -219,14 +215,15 @@ class ExposureManager {
219
215
}
220
216
val viewTag = view.getTag(TrackerConstants.VIEW_TAG_UNIQUE_NAME) asString?
221
217
val checkWindowFocus = checkWindowFocus(view) //检查视图是否拥有焦点,同时检查isShow
222
-
223
218
val exposureValid = checkExposureViewDimension(view) //是否可见getGlobalVisibleRect
224
219
val rootViewVisible = view.rootView.windowVisibility==View.VISIBLE
225
-
val needExposureProcess = exposureValid &&rootViewVisible
220
+
val needExposureProcess = checkWindowFocus && exposureValid &&rootViewVisible
221
+
//TrackerLog.d(view.javaClass.canonicalName+"=="+view.isShown+"view.getParent="+(view.parent as View).visibility+"===exposureValid="+exposureValid+"|"+rootViewVisible)
0 commit comments