Skip to content

Commit

Permalink
send event
Browse files Browse the repository at this point in the history
  • Loading branch information
hui.zhao committed Mar 5, 2020
1 parent e399039 commit b0361df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ public void onLifecycleEvent(MethodEvent lifecycleMethodEvent, Object page) {
if (lifecycleMethodEvent.isEnter) {
mPageLifecycleRecords.addMethodStartEvent(pageInfo, lifecycleEvent, lifecycleMethodEvent.eventTimeMillis);
} else {
mPageLifecycleRecords.addMethodEndEvent(pageInfo, lifecycleEvent, lifecycleMethodEvent.eventTimeMillis);
PageLifecycleEventWithTime<?> pageLifecycleEventWithTime = mPageLifecycleRecords.addMethodEndEvent(pageInfo, lifecycleEvent, lifecycleMethodEvent.eventTimeMillis);
if (pageLifecycleEventWithTime != null) {
mProducer.produce(new PageLifecycleEventInfo(pageInfo, pageLifecycleEventWithTime, mPageLifecycleRecords.getLifecycleEventsByPageInfo(pageInfo)));
}
}
}

Expand Down

0 comments on commit b0361df

Please sign in to comment.