|
|
@@ -2,10 +2,7 @@ package com.sheep.gamegroup.view.fragment;
|
|
|
|
|
|
import android.app.Activity;
|
|
|
import android.os.Bundle;
|
|
|
-import android.support.v4.widget.SwipeRefreshLayout;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
-import android.support.v7.widget.RecyclerView;
|
|
|
-import android.text.TextUtils;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
@@ -26,7 +23,6 @@ import com.sheep.gamegroup.util.DataUtil;
|
|
|
import com.sheep.gamegroup.util.ListUtil;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.gamegroup.view.adapter.TryMakeMoneyAdp;
|
|
|
-import com.sheep.gamegroup.view.customview.SheepmSwipeRefreshLayout;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.base.BaseFragment;
|
|
|
@@ -39,8 +35,6 @@ import java.util.List;
|
|
|
import java.util.Locale;
|
|
|
|
|
|
import butterknife.BindView;
|
|
|
-import butterknife.ButterKnife;
|
|
|
-import butterknife.Unbinder;
|
|
|
import rx.android.schedulers.AndroidSchedulers;
|
|
|
import rx.schedulers.Schedulers;
|
|
|
|
|
|
@@ -58,7 +52,6 @@ public class FgtMyGame extends BaseFragment {
|
|
|
XRecyclerView recyclerview;
|
|
|
@BindView(R.id.empty_view)
|
|
|
View empty_view;
|
|
|
- Unbinder unbinder;
|
|
|
private Activity activity;
|
|
|
private TryMakeMoneyAdp tryMakeMoneyAdp;
|
|
|
private int page = 1;//页数
|
|
|
@@ -185,7 +178,6 @@ public class FgtMyGame extends BaseFragment {
|
|
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
|
// TODO: inflate a fragment view
|
|
|
View rootView = super.onCreateView(inflater, container, savedInstanceState);
|
|
|
- unbinder = ButterKnife.bind(this, rootView);
|
|
|
Bundle bundle = getArguments();
|
|
|
if(bundle != null){
|
|
|
type = bundle.getInt("type", 0);
|
|
|
@@ -193,12 +185,6 @@ public class FgtMyGame extends BaseFragment {
|
|
|
return rootView;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void onDestroyView() {
|
|
|
- super.onDestroyView();
|
|
|
- unbinder.unbind();
|
|
|
- }
|
|
|
-
|
|
|
private int onResumeCount = 0;
|
|
|
@Override
|
|
|
public void onResume() {
|