|
|
@@ -326,10 +326,13 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
CommonUtil.getInstance().palyGameDetailBtnValue(false, gameEntity, gc_game_app_detail_bt2, 0);
|
|
|
} else if (gameEntity.getApp().getMobile_appointment() == 2) {
|
|
|
ViewUtil.setText(gc_game_app_detail_bt2, "立即预约");
|
|
|
- ViewUtil.setOnClickListener(gc_game_app_detail_bt2, v -> new GameAppointHelper(this, gameEntity, t -> {
|
|
|
- ViewUtil.setText(gc_game_app_detail_bt2, "已预约");
|
|
|
- ViewUtil.setOnClickListener(gc_game_app_detail_bt2, null);
|
|
|
- }).showAppointDialog());
|
|
|
+ ViewUtil.setOnClickListener(gc_game_app_detail_bt2, v -> {
|
|
|
+ if (gameEntity.getApp().getMobile_appointment() == 3) return;
|
|
|
+ new GameAppointHelper(this, gameEntity, t -> {
|
|
|
+ ViewUtil.setText(gc_game_app_detail_bt2, "已预约");
|
|
|
+ gameEntity.getApp().setMobile_appointment(3);
|
|
|
+ }).showAppointDialog();
|
|
|
+ });
|
|
|
} else if (gameEntity.getApp().getMobile_appointment() == 3) {
|
|
|
ViewUtil.setText(gc_game_app_detail_bt2, "已预约");
|
|
|
} else {
|
|
|
@@ -347,7 +350,7 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
}
|
|
|
if (gameGroup == null) {
|
|
|
ViewUtil.setVisibility(gc_game_app_detail_bt4, gameEntity.getApp().getActivity_id() > 0);
|
|
|
- ViewUtil.setOnClickListener(gc_game_app_detail_bt4, v->{
|
|
|
+ ViewUtil.setOnClickListener(gc_game_app_detail_bt4, v -> {
|
|
|
Jump2View.getInstance().goWeb(this, gameEntity.getApp().getActivity_url(), "活动");
|
|
|
});
|
|
|
}
|
|
|
@@ -740,7 +743,7 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
super.onResume();
|
|
|
isPlay = true;
|
|
|
if (onResumeCount > 0) {
|
|
|
- if (gameEntity != null && gc_game_app_detail_bt2 != null) {
|
|
|
+ if (gameEntity != null && gc_game_app_detail_bt2 != null && gameEntity.getApp().getMobile_appointment() == 1) {
|
|
|
//强制更新下载按钮
|
|
|
CommonUtil.getInstance().palyGameDetailBtnValue(false, gameEntity, gc_game_app_detail_bt2, 0);
|
|
|
}
|