Fix 'onRevisit' callback calls wrongly issue.
@@ -2,10 +2,6 @@ package org.edx.mobile.base;
import android.app.Activity;
import android.os.Bundle;
-import android.support.annotation.Nullable;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
import org.edx.mobile.event.NewRelicEvent;
@@ -13,7 +9,7 @@ import de.greenrobot.event.EventBus;
import roboguice.fragment.RoboFragment;
public class BaseFragment extends RoboFragment {
- private boolean isFirstVisit;
+ private boolean isFirstVisit = true;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -21,13 +17,6 @@ public class BaseFragment extends RoboFragment {
EventBus.getDefault().post(new NewRelicEvent(getClass().getSimpleName()));
}
- @Nullable
- @Override
- public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
- isFirstVisit = true;
- return super.onCreateView(inflater, container, savedInstanceState);
- }
-
@Override
public void onResume() {
super.onResume();
