單人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() { private void changePkTime() {
mPkTimeCount--; mPkTimeCount--;
if (mPkTimeCount > 0) {// if (mPkTimeCount >= 0) {//
nextPkTimeCountDown(); nextPkTimeCountDown();
} else { } else {
if (mIsPkEnd) { if (mIsPkEnd) {
@ -398,7 +398,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
// mLiveLinkMicPkViewHolder.removeFromParent(); // mLiveLinkMicPkViewHolder.removeFromParent();
// mLiveLinkMicPkViewHolder.release(); // mLiveLinkMicPkViewHolder.release();
// } // }
mLiveLinkMicPkViewHolder = null; // mLiveLinkMicPkViewHolder = null;
} }
} }
} }

View File

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

View File

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