diff --git a/src/main/java/ru/touchin/roboswag/components/navigation/fragments/ViewFragment.java b/src/main/java/ru/touchin/roboswag/components/navigation/fragments/ViewFragment.java index c90d9f2..2561c59 100644 --- a/src/main/java/ru/touchin/roboswag/components/navigation/fragments/ViewFragment.java +++ b/src/main/java/ru/touchin/roboswag/components/navigation/fragments/ViewFragment.java @@ -142,7 +142,6 @@ public abstract class ViewFragment extends } if (!appeared && isMenuVisible()) { onAppear(view, activity); - appeared = true; } } @@ -154,7 +153,7 @@ public abstract class ViewFragment extends * @param activity Activity which fragment attached to. */ protected void onAppear(@NonNull final View view, @NonNull final TActivity activity) { - //do nothing + appeared = true; } @Deprecated @@ -181,11 +180,9 @@ public abstract class ViewFragment extends if (getBaseActivity() != null && getView() != null) { if (!appeared && menuVisible && started) { onAppear(getView(), getBaseActivity()); - appeared = true; } if (appeared && (!menuVisible || !started)) { onDisappear(getView(), getBaseActivity()); - appeared = false; } } } @@ -216,7 +213,7 @@ public abstract class ViewFragment extends * @param activity Activity which fragment attached to. */ protected void onDisappear(@NonNull final View view, @NonNull final TActivity activity) { - //do nothing + appeared = false; } @Deprecated @@ -237,7 +234,6 @@ public abstract class ViewFragment extends protected void onStop(@NonNull final View view, @NonNull final TActivity activity) { if (appeared) { onDisappear(view, activity); - appeared = false; } }