Skip to content

Commit

Permalink
上传
Browse files Browse the repository at this point in the history
  • Loading branch information
puyang1017 committed Feb 20, 2019
1 parent 48d51fa commit 9eaa993
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,18 @@ public void setUserVisibleHint(boolean isVisibleToUser) {
&& getRootView() != null) {
isInitReady = true;
onCreateViewLazy(saveInstanceState);
onResumeLazy();
}
if (isInitReady && getRootView() != null) {
if (isVisibleToUser) {
isStart = true;
onStartLazy();
} else {
isStart = false;
onStopLazy();
}
}
if (isVisibleToUser && !isKotlinInitData) {
if (getUserVisibleHint() && !isKotlinInitData) {
onKotlinInitData();
isKotlinInitData = true;
}

}

@Override
Expand Down

0 comments on commit 9eaa993

Please sign in to comment.