添加了接口控制文字消息和语音的展示

This commit is contained in:
18401019693 2024-01-15 14:31:59 +08:00
parent e061e61088
commit 58b2d69601

View File

@ -193,7 +193,7 @@ public class SudGameActivity extends AbsActivity implements GameMicManager.Meeti
gameMicManager.leaveRoom();
gameMicManager.detachView();
}
if (!imOff) {
if (imOff) {
LiveNetManager.get(mContext)
.leaveMic(mLiveUid, new HttpCallback<HttpCallbackModel>() {
@Override
@ -303,7 +303,7 @@ public class SudGameActivity extends AbsActivity implements GameMicManager.Meeti
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.game_seat), new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
if (!imOff && gameMicManager != null) {
if (imOff && gameMicManager != null) {
if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) {
if (publishDefault) {
disable = true;
@ -335,7 +335,7 @@ public class SudGameActivity extends AbsActivity implements GameMicManager.Meeti
ViewClicksAntiShake.clicksAntiShake(gameCloseWheat, new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
if (!imOff && gameMicManager != null) {
if (imOff && gameMicManager != null) {
if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) {
if (disable) {
disable = false;