diff --git a/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/LazyFragmention.java b/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/LazyFragmention.java index 8c68423..1c2fa8e 100644 --- a/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/LazyFragmention.java +++ b/puymvpjava/src/main/java/com/android/puy/puymvpjava/mvp/LazyFragmention.java @@ -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