修复bug
This commit is contained in:
parent
0324b638fa
commit
b90d86d90f
@ -76,9 +76,9 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
protected void onDismiss() {
|
protected void onDismiss() {
|
||||||
super.onDismiss();
|
super.onDismiss();
|
||||||
if (onDismissListener != null) {
|
/*if (onDismissListener != null) {
|
||||||
onDismissListener.onItemClick(userInfoBean.getUser().getId() + "", isSayHi ? 2 : 1);
|
onDismissListener.onItemClick(userInfoBean.getUser().getId() + "", isSayHi ? 2 : 1);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isSayHi = false;
|
boolean isSayHi = false;
|
||||||
@ -93,7 +93,7 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
sendMsg(userInfoBean.getSayHiMsg());
|
sendMsg(userInfoBean.getSayHiMsg());
|
||||||
dismiss();
|
dismiss();
|
||||||
});
|
});
|
||||||
avatar = findViewById(R.id.avatar);
|
/* avatar = findViewById(R.id.avatar);
|
||||||
anchorName = findViewById(R.id.anchorName);
|
anchorName = findViewById(R.id.anchorName);
|
||||||
ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar);
|
ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar);
|
||||||
anchorName.setText(userInfoBean.getUser().getUserNicename());
|
anchorName.setText(userInfoBean.getUser().getUserNicename());
|
||||||
@ -105,7 +105,7 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
,WordUtil.isNewZh()?"歲":"years old"
|
,WordUtil.isNewZh()?"歲":"years old"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
showTag();
|
showTag();*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showTag() {
|
private void showTag() {
|
||||||
|
@ -206,11 +206,13 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/followLayout"
|
android:id="@+id/followLayout"
|
||||||
android:layout_width="80dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="35dp"
|
android:layout_height="35dp"
|
||||||
android:background="@drawable/bg_main_com_type"
|
android:background="@drawable/bg_main_com_type"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal"
|
||||||
|
android:paddingStart="10dp"
|
||||||
|
android:paddingEnd="10dp">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/followIcon"
|
android:id="@+id/followIcon"
|
||||||
@ -223,7 +225,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="5dp"
|
android:layout_marginLeft="5dp"
|
||||||
android:text="@string/follow"
|
android:text="@string/focus_on"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="14dp"
|
android:textSize="14dp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
@ -700,7 +702,7 @@
|
|||||||
android:id="@+id/moreText"
|
android:id="@+id/moreText"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/moer"
|
android:text="@string/see_more"
|
||||||
android:textColor="#FF4874"
|
android:textColor="#FF4874"
|
||||||
android:textSize="13dp"
|
android:textSize="13dp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
<string name="live_blowkiss_time">Free for a limited time</string>
|
<string name="live_blowkiss_time">Free for a limited time</string>
|
||||||
<string name="live_blowkiss_follow">Follow and reply</string>
|
<string name="live_blowkiss_follow">Follow and reply</string>
|
||||||
|
|
||||||
<string name="following">Followed</string>
|
<string name="following">Following</string>
|
||||||
<string name="follow_my_follow">My concern</string>
|
<string name="follow_my_follow">My concern</string>
|
||||||
<string name="my_black">My Black List</string>
|
<string name="my_black">My Black List</string>
|
||||||
<string name="follow_ta_follow">TA\'s attention</string>
|
<string name="follow_ta_follow">TA\'s attention</string>
|
||||||
|
@ -24,4 +24,7 @@
|
|||||||
<string name="_200">Please enter text within 200 words</string>
|
<string name="_200">Please enter text within 200 words</string>
|
||||||
<string name="time_hour">hour</string>
|
<string name="time_hour">hour</string>
|
||||||
<string name="time_minute">minute</string>
|
<string name="time_minute">minute</string>
|
||||||
|
<string name="focus_on">Focus on</string>
|
||||||
|
<string name="see_more">See more</string>
|
||||||
|
<string name="close">close</string>
|
||||||
</resources>
|
</resources>
|
@ -1489,4 +1489,7 @@
|
|||||||
<string name="_200">请输入200字以内的文字</string>
|
<string name="_200">请输入200字以内的文字</string>
|
||||||
<string name="time_hour">時</string>
|
<string name="time_hour">時</string>
|
||||||
<string name="time_minute">分</string>
|
<string name="time_minute">分</string>
|
||||||
|
<string name="focus_on">關注</string>
|
||||||
|
<string name="see_more">查看更多</string>
|
||||||
|
<string name="close">收起</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1489,4 +1489,7 @@
|
|||||||
<string name="_200">请输入200字以内的文字</string>
|
<string name="_200">请输入200字以内的文字</string>
|
||||||
<string name="time_hour">時</string>
|
<string name="time_hour">時</string>
|
||||||
<string name="time_minute">分</string>
|
<string name="time_minute">分</string>
|
||||||
|
<string name="focus_on">關注</string>
|
||||||
|
<string name="see_more">查看更多</string>
|
||||||
|
<string name="close">收起</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1487,4 +1487,7 @@
|
|||||||
<string name="_200">请输入200字以内的文字</string>
|
<string name="_200">请输入200字以内的文字</string>
|
||||||
<string name="time_hour">時</string>
|
<string name="time_hour">時</string>
|
||||||
<string name="time_minute">分</string>
|
<string name="time_minute">分</string>
|
||||||
|
<string name="focus_on">關注</string>
|
||||||
|
<string name="see_more">查看更多</string>
|
||||||
|
<string name="close">收起</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1509,6 +1509,9 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="_200">请输入200字以内的文字</string>
|
<string name="_200">请输入200字以内的文字</string>
|
||||||
<string name="time_hour">時</string>
|
<string name="time_hour">時</string>
|
||||||
<string name="time_minute">分</string>
|
<string name="time_minute">分</string>
|
||||||
|
<string name="focus_on">關注</string>
|
||||||
|
<string name="see_more">查看更多</string>
|
||||||
|
<string name="close">收起</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -254,7 +254,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
|
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
|
||||||
} else {
|
} else {
|
||||||
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_follow, followIcon);
|
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_follow, followIcon);
|
||||||
followName.setText(getResources().getString(R.string.follow));
|
followName.setText(getResources().getString(R.string.focus_on));
|
||||||
followName.setTextColor(getResources().getColor(R.color.white));
|
followName.setTextColor(getResources().getColor(R.color.white));
|
||||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
|
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
|
||||||
}
|
}
|
||||||
@ -312,10 +312,15 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
});
|
});
|
||||||
bannerImgList = new ArrayList<>();
|
bannerImgList = new ArrayList<>();
|
||||||
if (isAnchor) {
|
if (isAnchor) {
|
||||||
bannerImgList = userInfo.getUserHomeTopInfo().getUser_home_banner();
|
if (userInfo.getUserHomeTopInfo().getUser_home_banner() == null || userInfo.getUserHomeTopInfo().getUser_home_banner().size() == 0) {
|
||||||
|
bannerImgList.add(userInfo.getUserHomeTopInfo().getUser_avatar());
|
||||||
|
} else {
|
||||||
|
bannerImgList.addAll(userInfo.getUserHomeTopInfo().getUser_home_banner());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bannerImgList.add(userInfo.getUserHomeTopInfo().getUser_avatar());
|
bannerImgList.add(userInfo.getUserHomeTopInfo().getUser_avatar());
|
||||||
}
|
}
|
||||||
|
|
||||||
tempList = new ArrayList<>();
|
tempList = new ArrayList<>();
|
||||||
for (int i = 0; i < bannerImgList.size(); i++) {
|
for (int i = 0; i < bannerImgList.size(); i++) {
|
||||||
tempList.add(new UserHomeImgBean(bannerImgList.get(i)));
|
tempList.add(new UserHomeImgBean(bannerImgList.get(i)));
|
||||||
@ -501,7 +506,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
itemLayout03.setVisibility(View.GONE);
|
itemLayout03.setVisibility(View.GONE);
|
||||||
itemLayout04.setVisibility(View.GONE);
|
itemLayout04.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
moreText.setText(getResources().getString(R.string.moer));
|
moreText.setText(getResources().getString(R.string.see_more));
|
||||||
ImgLoader.display(mContext, R.mipmap.icon_down, moreIcon);
|
ImgLoader.display(mContext, R.mipmap.icon_down, moreIcon);
|
||||||
} else {
|
} else {
|
||||||
if (isAnchor) {
|
if (isAnchor) {
|
||||||
@ -513,7 +518,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
itemLayout03.setVisibility(View.VISIBLE);
|
itemLayout03.setVisibility(View.VISIBLE);
|
||||||
itemLayout04.setVisibility(View.VISIBLE);
|
itemLayout04.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
moreText.setText(getResources().getString(R.string.video_comment_collapsed));
|
moreText.setText(getResources().getString(com.yunbao.main.R.string.close));
|
||||||
ImgLoader.display(mContext, R.mipmap.icon_up, moreIcon);
|
ImgLoader.display(mContext, R.mipmap.icon_up, moreIcon);
|
||||||
}
|
}
|
||||||
isShowcase = !isShowcase;
|
isShowcase = !isShowcase;
|
||||||
|
@ -451,14 +451,14 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli
|
|||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
if (mVideoBean.getIs_love().equals("1")) {
|
if (mVideoBean.getIs_love().equals("1")) {
|
||||||
int loveNum = Integer.parseInt(mVideoBean.getLove_num());
|
int loveNum = Integer.parseInt(mVideoBean.getLove_num());
|
||||||
mVideoBean.setIs_love(String.valueOf(loveNum - 1));
|
mVideoBean.setLove_num(String.valueOf(loveNum - 1));
|
||||||
} else {
|
} else {
|
||||||
int loveNum = Integer.parseInt(mVideoBean.getLove_num());
|
int loveNum = Integer.parseInt(mVideoBean.getLove_num());
|
||||||
mVideoBean.setIs_love(String.valueOf(loveNum + 1));
|
mVideoBean.setLove_num(String.valueOf(loveNum + 1));
|
||||||
}
|
}
|
||||||
String isLike = mVideoBean.getIs_love().equals("1") ? "0" : "1";
|
String isLike = mVideoBean.getIs_love().equals("1") ? "0" : "1";
|
||||||
mVideoBean.setIs_love(isLike);
|
mVideoBean.setIs_love(isLike);
|
||||||
EventBus.getDefault().post(new VideoLikeEvent(mVideoBean.getId(), Integer.parseInt(mVideoBean.getLove_num()), mVideoBean.getLove_num()));
|
EventBus.getDefault().post(new VideoLikeEvent(mVideoBean.getId(), Integer.parseInt(mVideoBean.getIs_love()), mVideoBean.getLove_num()));
|
||||||
if (mVideoBean.getIs_love().equals("1")) {
|
if (mVideoBean.getIs_love().equals("1")) {
|
||||||
mBtnLike.setImageResource(R.mipmap.icon_video_zan_new02);
|
mBtnLike.setImageResource(R.mipmap.icon_video_zan_new02);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user