pk倒计时修复
This commit is contained in:
parent
13146595bf
commit
eaae58db31
@ -39,7 +39,6 @@ import com.tencent.trtc.TRTCCloud;
|
|||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.event.AnchorInfoEvent;
|
import com.yunbao.common.event.AnchorInfoEvent;
|
||||||
import com.yunbao.common.event.FollowEvent;
|
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
@ -306,6 +305,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
private void nextPkTimeCountDown() {
|
private void nextPkTimeCountDown() {
|
||||||
|
Log.i("vvvs", "mHandler:" + (mHandler != null) );
|
||||||
if (mHandler != null) {
|
if (mHandler != null) {
|
||||||
mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME, getNextSecondTime());
|
mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME, getNextSecondTime());
|
||||||
}
|
}
|
||||||
@ -384,7 +384,9 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
* pk时间倒计时
|
* pk时间倒计时
|
||||||
*/
|
*/
|
||||||
private void changePkTime() {
|
private void changePkTime() {
|
||||||
|
if (mPkTimeCount<0)return;
|
||||||
mPkTimeCount--;
|
mPkTimeCount--;
|
||||||
|
Log.i("vvvs", "mPkTimeCount:" + mPkTimeCount);
|
||||||
if (mPkTimeCount >= 0) {//
|
if (mPkTimeCount >= 0) {//
|
||||||
nextPkTimeCountDown();
|
nextPkTimeCountDown();
|
||||||
if (mContext instanceof LiveAudienceActivity) {
|
if (mContext instanceof LiveAudienceActivity) {
|
||||||
@ -2161,7 +2163,6 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
|||||||
if (mHandler != null) {
|
if (mHandler != null) {
|
||||||
mHandler.removeCallbacksAndMessages(null);
|
mHandler.removeCallbacksAndMessages(null);
|
||||||
}
|
}
|
||||||
mHandler = null;
|
|
||||||
mSocketRyClient = null;
|
mSocketRyClient = null;
|
||||||
if (mLiveLinkMicPkViewHolder != null) {
|
if (mLiveLinkMicPkViewHolder != null) {
|
||||||
mLiveLinkMicPkViewHolder.release();
|
mLiveLinkMicPkViewHolder.release();
|
||||||
|
Loading…
Reference in New Issue
Block a user