|
|
@@ -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.FgtPersonalCenter;
|
|
|
import com.kfzs.duanduan.fragment.FgtSmallSheep;
|
|
|
import com.kfzs.libs.utils.DrawablesHelper;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
@@ -104,12 +105,17 @@ public class TabsHelper {
|
|
|
checkViewState(position);
|
|
|
view_pager_container.setCurrentItem(position, false);
|
|
|
int sheepPosition = MainTab.FgtSmallSheep.ordinal();
|
|
|
+ int personnalPosition = MainTab.FgtPersonnalCenter.ordinal();
|
|
|
FgtSmallSheep fgtSmallSheep = (FgtSmallSheep) fragmentList.get(sheepPosition);
|
|
|
+ FgtPersonalCenter personnalCenter = (FgtPersonalCenter) fragmentList.get(personnalPosition);
|
|
|
if(position == sheepPosition){
|
|
|
fgtSmallSheep.onResume();
|
|
|
} else {
|
|
|
fgtSmallSheep.onPause();
|
|
|
}
|
|
|
+ if(position == personnalPosition){
|
|
|
+ personnalCenter.onResume();
|
|
|
+ }
|
|
|
checkWhichPage(position);
|
|
|
}
|
|
|
|