package cc.cubone.turbo.ui.base;

import android.support.v4.app.Fragment;

public class BaseFragment extends Fragment {

    public BaseFragment() {
    }

}

@@ -123,27 +123,842 @@
    p
-ublic BaseFragment(
+rivate boolean mUserNotSeen = true;%0A%0A    public BaseFragment() %7B%0A    %7D%0A%0A    @Override%0A    public void setUserVisibleHint(boolean isVisibleToUser) %7B%0A        super.setUserVisibleHint(isVisibleToUser);%0A        if (mUserNotSeen && isVisibleToUser) %7B%0A            onUserFirstSight();%0A            mUserNotSeen = false;%0A        %7D%0A        onUserVisibleChanged(isVisibleToUser);%0A    %7D%0A%0A    /**%0A     * Called when visible to user first time.%0A     */%0A    protected void onUserFirstSight() %7B%0A    %7D%0A%0A    /**%0A     * Called when visible to user has changed.%0A     *%0A     * %3Cul%3E%0A     * %3Cli%3E%3Ca href=%22http://stackoverflow.com/questions/10024739/how-to-determine-when-fragment-becomes-visible-in-viewpager%22%3E%0A     * How to determine when Fragment becomes visible in ViewPager%3C/a%3E%0A     * %3C/ul%3E%0A     */%0A    protected void onUserVisibleChanged(boolean visible
 ) %7B%0A

add user visible to base fragment