單人PK卡0分 優化計算中

This commit is contained in:
18142669586 2022-12-30 14:57:47 +08:00
parent 2e986db686
commit 54923304dc
3 changed files with 5 additions and 4 deletions

View File

@ -385,7 +385,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
*/
private void changePkTime() {
mPkTimeCount--;
if (mPkTimeCount > 0) {//
if (mPkTimeCount >= 0) {//
nextPkTimeCountDown();
} else {
if (mIsPkEnd) {
@ -398,7 +398,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
// mLiveLinkMicPkViewHolder.removeFromParent();
// mLiveLinkMicPkViewHolder.release();
// }
mLiveLinkMicPkViewHolder = null;
// mLiveLinkMicPkViewHolder = null;
}
}
}

View File

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

View File

@ -112,6 +112,7 @@
android:layout_alignParentRight="true"
android:layout_marginTop="122dp"
android:layout_marginRight="9dp"
android:visibility="gone"
android:background="@drawable/bg_live_other_ico"
android:gravity="center">