fix[声望升级-修复BUG]
This commit is contained in:
parent
0252963b2e
commit
9711b1f8d4
@ -21,10 +21,10 @@ org.gradle.configureondemand=true
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
|
||||
systemProp.http.proxyHost=127.0.0.1
|
||||
systemProp.https.proxyHost=127.0.0.1
|
||||
systemProp.https.proxyPort=10809
|
||||
systemProp.http.proxyPort=10809
|
||||
#systemProp.http.proxyHost=127.0.0.1
|
||||
#systemProp.https.proxyHost=127.0.0.1
|
||||
#systemProp.https.proxyPort=10809
|
||||
#systemProp.http.proxyPort=10809
|
||||
|
||||
|
||||
#android.enableR8.fullMode=true
|
@ -187,7 +187,6 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
private boolean liveIndex = true;
|
||||
private boolean isPk = false;
|
||||
private boolean isRadPacetModle = false;
|
||||
public boolean isSw;
|
||||
|
||||
@Override
|
||||
public <T extends View> T findViewById(@IdRes int id) {
|
||||
|
@ -733,12 +733,13 @@ public class LivePlaySwViewHolder extends LiveRoomPlayViewHolder {
|
||||
mCover.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
swAuManager.exitChannelAll();
|
||||
stopPlay2();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopPlay2() {
|
||||
|
||||
drMicUserList = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -130,22 +130,25 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
btn_start_dr_pk.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
if (pk_nub <= 0) return;
|
||||
//開始多人PK
|
||||
HttpClient.getInstance().get("live.startDRPK", "live.startDRPK")
|
||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
PKing = true;
|
||||
pk_nub = pk_nub - 1;
|
||||
btn_dr_pk_nub.setText("剩餘次數:" + pk_nub);
|
||||
} else {
|
||||
ToastUtil.show(msg);
|
||||
if(pk_nub<= 0){
|
||||
ToastUtil.show("多人PK次数已用完");
|
||||
}else{
|
||||
//開始多人PK
|
||||
HttpClient.getInstance().get("live.startDRPK", "live.startDRPK")
|
||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
PKing = true;
|
||||
pk_nub = pk_nub - 1;
|
||||
btn_dr_pk_nub.setText("剩餘次數:" + pk_nub);
|
||||
} else {
|
||||
ToastUtil.show(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -983,6 +983,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
mLiveRyLinkMicPkPresenter.release();
|
||||
mLiveRyLinkMicPkPresenter = null;
|
||||
}
|
||||
if(mLivePlayViewHolder!=null){
|
||||
mLivePlayViewHolder.stopPlay2();
|
||||
}
|
||||
if (mLiveEndViewHolder != null) {
|
||||
removeLiveEnd();
|
||||
}
|
||||
|
@ -69,7 +69,7 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/dr_pk_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="300dp"
|
||||
android:layout_height="270dp"
|
||||
android:layout_marginTop="130dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
Loading…
Reference in New Issue
Block a user