Skip to content

Commit

Permalink
add : tabbar life cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanxiao committed Jul 25, 2018
1 parent aaed510 commit 57e4781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public void destroy() {
}
((HookWXImageView) getHostView()).destory();
}
Glide.with(getHostView().getContext()).clear(getHostView());
// Glide.with(getHostView().getContext()).clear(getHostView());
super.destroy();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,12 @@ public void setUserVisibleHint(boolean isVisibleToUser) {
if (isVisibleToUser && GlobalEventManager.TYPE_BACK.equals(mRouterType)) {
if (mWXInstance != null) {
GlobalEventManager.onViewWillAppear(mWXInstance, mRouterType);
GlobalEventManager.onViewDidAppear(mWXInstance, mRouterType);
}
}
if (!isVisibleToUser) {
if (mWXInstance != null) {
GlobalEventManager.onViewWillDisappear(mWXInstance, mRouterType);
GlobalEventManager.onViewDidDisappear(mWXInstance, mRouterType);
}
}
Expand Down

0 comments on commit 57e4781

Please sign in to comment.