From 9eaa993ffa65dd9be6543c9ff9e175bf0f65c07e Mon Sep 17 00:00:00 2001 From: puyang1017 Date: Wed, 20 Feb 2019 18:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/android/puy/puymvpjava/mvp/LazyFragmention.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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