單人PK卡0分 優化計算中

This commit is contained in:
18142669586 2022-12-29 16:12:41 +08:00
parent 43c22fca7c
commit 2e986db686
3 changed files with 12 additions and 8 deletions

View File

@ -394,10 +394,10 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
((LiveRyAnchorActivity) mContext).setPkBtnVisible(true);
}
//如果PK结束Im没有发送关闭PK的消息倒计时结束自动关闭
if (mLiveLinkMicPkViewHolder != null) {
mLiveLinkMicPkViewHolder.removeFromParent();
mLiveLinkMicPkViewHolder.release();
}
// if (mLiveLinkMicPkViewHolder != null) {
// mLiveLinkMicPkViewHolder.removeFromParent();
// mLiveLinkMicPkViewHolder.release();
// }
mLiveLinkMicPkViewHolder = null;
}
}

View File

@ -190,8 +190,12 @@ public class LiveLinkMicPkViewHolder extends AbsViewHolder {
public void setTime(String content) {
if (mTime != null) {
mTime.setText(content);
Log.i("vvvs",content);
if(content.trim().equals("00:01")||content.trim().equals("00:00")){
mTime.setText("計算中");
}else {
mTime.setText(content);
}
}
}

View File

@ -110,7 +110,7 @@
android:layout_width="wrap_content"
android:layout_height="27dp"
android:layout_alignParentRight="true"
android:layout_marginTop="120dp"
android:layout_marginTop="122dp"
android:layout_marginRight="9dp"
android:background="@drawable/bg_live_other_ico"
android:gravity="center">
@ -174,7 +174,7 @@
android:paddingBottom="5dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_marginTop="420dp"
android:layout_marginTop="400dp"
android:layout_marginRight="8dp"
android:layout_alignParentRight="true"
android:text="結束連麥"