料体消息添加动画效果
This commit is contained in:
@@ -305,7 +305,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
int i = 0;
|
||||
|
||||
private void nextPkTimeCountDown() {
|
||||
Log.i("vvvs", "mHandler:" + (mHandler != null) );
|
||||
Log.i("vvvs", "mHandler:" + (mHandler != null));
|
||||
if (mHandler != null) {
|
||||
mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME, getNextSecondTime());
|
||||
}
|
||||
@@ -384,7 +384,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
* pk时间倒计时
|
||||
*/
|
||||
private void changePkTime() {
|
||||
if (mPkTimeCount<0)return;
|
||||
if (mPkTimeCount < 0) return;
|
||||
mPkTimeCount--;
|
||||
Log.i("vvvs", "mPkTimeCount:" + mPkTimeCount);
|
||||
if (mPkTimeCount >= 0) {//
|
||||
@@ -2164,6 +2164,7 @@ public class LiveRyLinkMicPkPresenter implements View.OnClickListener {
|
||||
mHandler.removeCallbacksAndMessages(null);
|
||||
}
|
||||
mSocketRyClient = null;
|
||||
mHandler = null;
|
||||
if (mLiveLinkMicPkViewHolder != null) {
|
||||
mLiveLinkMicPkViewHolder.release();
|
||||
}
|
||||
|
||||
@@ -291,6 +291,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
mLiveLinkMicPresenter.setLiveSdk(mLiveSDK);
|
||||
mLiveLinkMicAnchorPresenter.setLiveSdk(mLiveSDK);
|
||||
}
|
||||
if (mLiveRyLinkMicPkPresenter==null){
|
||||
mLiveRyLinkMicPkPresenter = new LiveRyLinkMicPkPresenter(mContext, mLivePlayViewHolder, false, null);
|
||||
}
|
||||
//去除主播离开画面
|
||||
if (LivePlayKsyViewHolder.leave != null) {
|
||||
LivePlayKsyViewHolder.leave.setVisibility(View.GONE);
|
||||
@@ -681,6 +684,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
if (mLiveRyLinkMicPkPresenter != null) {
|
||||
mLiveRyLinkMicPkPresenter.clearData();
|
||||
mLiveRyLinkMicPkPresenter.release();
|
||||
mLiveRyLinkMicPkPresenter = null;
|
||||
}
|
||||
if (isQuit) {
|
||||
isQuitF = true;
|
||||
|
||||
Reference in New Issue
Block a user