|
@@ -395,6 +395,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
home_list_gridview_layout.setVisibility(View.VISIBLE);
|
|
home_list_gridview_layout.setVisibility(View.VISIBLE);
|
|
|
homeListEntitys.addAll(cacheHomeListEtyList);
|
|
homeListEntitys.addAll(cacheHomeListEtyList);
|
|
|
boolean isShowQB = false;
|
|
boolean isShowQB = false;
|
|
|
|
|
+ boolean isShowMd = false;
|
|
|
for (int i = 0; i < homeListEntitys.size(); i++) {
|
|
for (int i = 0; i < homeListEntitys.size(); i++) {
|
|
|
if (i < 4) {
|
|
if (i < 4) {
|
|
|
homeListEntitysGridview.add(homeListEntitys.get(i));
|
|
homeListEntitysGridview.add(homeListEntitys.get(i));
|
|
@@ -405,11 +406,11 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
isShowQB = !isShowQB;
|
|
isShowQB = !isShowQB;
|
|
|
}
|
|
}
|
|
|
if (homeListEntitys.get(i).getJump().equals("14")) {//幂动科技
|
|
if (homeListEntitys.get(i).getJump().equals("14")) {//幂动科技
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ isShowMd = !isShowMd;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
SheepApp.getInstance().setShowQB(isShowQB);
|
|
SheepApp.getInstance().setShowQB(isShowQB);
|
|
|
|
|
+ SheepApp.getInstance().setShowMidong(isShowMd);
|
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
|
adpHomeListListview.notifyDataSetChanged();
|
|
adpHomeListListview.notifyDataSetChanged();
|
|
|
home_list_gridview_listview.setVisibility(homeListEntitysListview.isEmpty() ? View.GONE : View.VISIBLE);
|
|
home_list_gridview_listview.setVisibility(homeListEntitysListview.isEmpty() ? View.GONE : View.VISIBLE);
|
|
@@ -727,6 +728,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
homeListEntitysListview.clear();
|
|
homeListEntitysListview.clear();
|
|
|
homeListEntitys.addAll(homeListEntity);
|
|
homeListEntitys.addAll(homeListEntity);
|
|
|
boolean isShowQB = false;
|
|
boolean isShowQB = false;
|
|
|
|
|
+ boolean isShowMd = false;
|
|
|
for (int i = 0; i < homeListEntitys.size(); i++) {
|
|
for (int i = 0; i < homeListEntitys.size(); i++) {
|
|
|
if (i < 4) {
|
|
if (i < 4) {
|
|
|
homeListEntitysGridview.add(homeListEntitys.get(i));
|
|
homeListEntitysGridview.add(homeListEntitys.get(i));
|
|
@@ -736,8 +738,12 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
if (homeListEntitys.get(i).getJump().equals("6")) {//6Q币充值
|
|
if (homeListEntitys.get(i).getJump().equals("6")) {//6Q币充值
|
|
|
isShowQB = !isShowQB;
|
|
isShowQB = !isShowQB;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (homeListEntitys.get(i).getJump().equals("14")) {//幂动科技
|
|
|
|
|
+ isShowMd = !isShowMd;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
SheepApp.getInstance().setShowQB(isShowQB);
|
|
SheepApp.getInstance().setShowQB(isShowQB);
|
|
|
|
|
+ SheepApp.getInstance().setShowMidong(isShowMd);
|
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
|
adpHomeListListview.notifyDataSetChanged();
|
|
adpHomeListListview.notifyDataSetChanged();
|
|
|
home_list_gridview_listview.setVisibility(homeListEntitysListview.isEmpty() ? View.GONE : View.VISIBLE);
|
|
home_list_gridview_listview.setVisibility(homeListEntitysListview.isEmpty() ? View.GONE : View.VISIBLE);
|
|
@@ -771,13 +777,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
@Override
|
|
@Override
|
|
|
public void onResume() {
|
|
public void onResume() {
|
|
|
super.onResume();
|
|
super.onResume();
|
|
|
- new Handler().postDelayed(new Runnable() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void run() {
|
|
|
|
|
- //幂动科技
|
|
|
|
|
- CommonUtil.getInstance().initMiDong(activity, userEntity.getId());
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
UserEntity result = DataUtil.getInstance().getUserEntity();
|
|
UserEntity result = DataUtil.getInstance().getUserEntity();
|
|
|
if(result == null) {
|
|
if(result == null) {
|
|
|
CommonUtil.getInstance().updateUserInfo(new Action1<UserEntity>() {
|
|
CommonUtil.getInstance().updateUserInfo(new Action1<UserEntity>() {
|