|
|
@@ -11,6 +11,7 @@ import com.kf.utils.ToastBuilder;
|
|
|
import com.kfzs.duanduan.ActMain;
|
|
|
import com.kfzs.duanduan.KFZSApp;
|
|
|
import com.kfzs.duanduan.adp.ViewPagerFragmentAdapter;
|
|
|
+import com.kfzs.duanduan.fragment.FgtSmallSheep;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
|
|
|
@@ -90,6 +91,13 @@ public class TabsHelper {
|
|
|
public void onClick(View view) {
|
|
|
checkViewState(position);
|
|
|
view_pager_container.setCurrentItem(position, false);
|
|
|
+ int sheepPosition = MainTab.FgtSmallSheep.ordinal();
|
|
|
+ FgtSmallSheep fgtSmallSheep = (FgtSmallSheep) fragmentList.get(sheepPosition);
|
|
|
+ if(position == sheepPosition){
|
|
|
+ fgtSmallSheep.onResume();
|
|
|
+ } else {
|
|
|
+ fgtSmallSheep.onPause();
|
|
|
+ }
|
|
|
checkWhichPage(position);
|
|
|
}
|
|
|
});
|