|
@@ -1,18 +1,21 @@
|
|
|
package com.sheep.gamegroup.view.activity;
|
|
package com.sheep.gamegroup.view.activity;
|
|
|
|
|
|
|
|
|
|
+import static com.sheep.gamegroup.util.UMConfigUtils.Event.FIND_SHARE;
|
|
|
|
|
+
|
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
-import androidx.annotation.NonNull;
|
|
|
|
|
-import androidx.annotation.Nullable;
|
|
|
|
|
-import com.google.android.material.tabs.TabLayout;
|
|
|
|
|
-import androidx.fragment.app.Fragment;
|
|
|
|
|
-import androidx.viewpager.widget.ViewPager;
|
|
|
|
|
-import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
|
|
+import androidx.annotation.NonNull;
|
|
|
|
|
+import androidx.annotation.Nullable;
|
|
|
|
|
+import androidx.fragment.app.Fragment;
|
|
|
|
|
+import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
|
+import androidx.viewpager.widget.ViewPager;
|
|
|
|
|
+
|
|
|
|
|
+import com.google.android.material.tabs.TabLayout;
|
|
|
import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
|
import com.kfzs.duanduan.utils.StatusBarUtils;
|
|
import com.kfzs.duanduan.utils.StatusBarUtils;
|
|
|
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
|
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
|
@@ -26,7 +29,6 @@ import com.sheep.gamegroup.event.BigEvent;
|
|
|
import com.sheep.gamegroup.helper.DownloadHelper;
|
|
import com.sheep.gamegroup.helper.DownloadHelper;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.GameEntity;
|
|
import com.sheep.gamegroup.model.entity.GameEntity;
|
|
|
-import com.sheep.gamegroup.model.entity.GameListTag;
|
|
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.util.ApiUtil;
|
|
import com.sheep.gamegroup.util.ApiUtil;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
@@ -57,8 +59,6 @@ import butterknife.OnClick;
|
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
|
import io.reactivex.schedulers.Schedulers;
|
|
import io.reactivex.schedulers.Schedulers;
|
|
|
|
|
|
|
|
-import static com.sheep.gamegroup.util.UMConfigUtils.Event.FIND_SHARE;
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Created by realicing on 2018/10/31.
|
|
* Created by realicing on 2018/10/31.
|
|
@@ -151,7 +151,7 @@ public class ActGcGameAppDetail extends BaseActivity {
|
|
|
ViewUtil.setImage(write_comment, ViewUtil.getNetImgByName("write_comment"));
|
|
ViewUtil.setImage(write_comment, ViewUtil.getNetImgByName("write_comment"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private List<GameListTag> tagList = ListUtil.emptyList();
|
|
|
|
|
|
|
+ private List<String> tagList = ListUtil.emptyList();
|
|
|
|
|
|
|
|
//重置view
|
|
//重置view
|
|
|
private void resetView() {
|
|
private void resetView() {
|
|
@@ -219,7 +219,8 @@ public class ActGcGameAppDetail extends BaseActivity {
|
|
|
ViewUtil.setText(gc_game_app_detail_fl_tv);
|
|
ViewUtil.setText(gc_game_app_detail_fl_tv);
|
|
|
//加载游戏标签
|
|
//加载游戏标签
|
|
|
if (gameEntity.getApp().getTags() != null) {
|
|
if (gameEntity.getApp().getTags() != null) {
|
|
|
- tagList.addAll(gameEntity.getApp().getTags());
|
|
|
|
|
|
|
+ tagList.clear();
|
|
|
|
|
+ tagList.addAll(gameEntity.getApp().getGameTagNewList());
|
|
|
ListUtil.removeNull(tagList);
|
|
ListUtil.removeNull(tagList);
|
|
|
if (recyclerView.getAdapter() != null)
|
|
if (recyclerView.getAdapter() != null)
|
|
|
recyclerView.getAdapter().notifyDataSetChanged();
|
|
recyclerView.getAdapter().notifyDataSetChanged();
|
|
@@ -368,9 +369,9 @@ public class ActGcGameAppDetail extends BaseActivity {
|
|
|
|
|
|
|
|
@OnClick(R.id.gc_game_app_detail_bt3)
|
|
@OnClick(R.id.gc_game_app_detail_bt3)
|
|
|
public void onGoDirectionalPay(View v) {
|
|
public void onGoDirectionalPay(View v) {
|
|
|
- CommonUtil.getInstance().getUserInfo(false, user->{
|
|
|
|
|
- if(user==null) return;
|
|
|
|
|
- if(user.isVIP()){
|
|
|
|
|
|
|
+ CommonUtil.getInstance().getUserInfo(false, user -> {
|
|
|
|
|
+ if (user == null) return;
|
|
|
|
|
+ if (user.isVIP()) {
|
|
|
Jump2View.getInstance().gotoGameVipRecharge(gameEntity.getApp());
|
|
Jump2View.getInstance().gotoGameVipRecharge(gameEntity.getApp());
|
|
|
} else {
|
|
} else {
|
|
|
Jump2View.getInstance().gotoVip(this);
|
|
Jump2View.getInstance().gotoVip(this);
|