Merge branch 'dev' of gitlab.ghzhushou.com:halo/assistant-android into dev
This commit is contained in:
@ -106,7 +106,12 @@ public class GameDetailBasicInfoAdapter extends BaseRecyclerAdapter<RecyclerView
|
||||
viewHolder.hintDv.setVisibility(View.GONE);
|
||||
}
|
||||
viewHolder.hintTv.setText(tagEntity.getName());
|
||||
viewHolder.hintTv.setTextColor(Color.parseColor(tagEntity.getColor()));
|
||||
try {
|
||||
// 有可能给的颜色有问题
|
||||
viewHolder.hintTv.setTextColor(Color.parseColor(tagEntity.getColor()));
|
||||
} catch (Exception ignore) {
|
||||
|
||||
}
|
||||
if (isOpen) {
|
||||
viewHolder.hintContentTv.setVisibility(View.VISIBLE);
|
||||
viewHolder.hintContentTv.setText(tagEntity.getDes());
|
||||
@ -124,6 +129,8 @@ public class GameDetailBasicInfoAdapter extends BaseRecyclerAdapter<RecyclerView
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
if (tags == null) return 0;
|
||||
|
||||
if (tips.getTitle() != null) {
|
||||
return tags.size() + 1;
|
||||
}
|
||||
|
||||
@ -50,6 +50,8 @@ class SubjectTypeListAdapter(context: Context,
|
||||
}
|
||||
|
||||
holder.type.setOnClickListener {
|
||||
if (holder.adapterPosition == -1) return@setOnClickListener
|
||||
|
||||
holder.type.isSelected = true
|
||||
mCurType = mGameType[holder.adapterPosition]
|
||||
mItemClickListener.invoke(mGameType[holder.adapterPosition])
|
||||
|
||||
Reference in New Issue
Block a user