修复打包后PK中屏蔽暂时离开失效问题

This commit is contained in:
zlzw 2022-11-16 13:38:27 +08:00
parent 85971339d4
commit 6b1c223acd
2 changed files with 8 additions and 1 deletions

View File

@ -535,7 +535,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
}
bundle.putBoolean(Constants.HAS_GAME, hasGame);
bundle.putInt("leave", leave);
bundle.putBoolean("isPk", isDRPK == 1 || PKing);
bundle.putBoolean("isPk", isDRPK == 1 || PKing || mLivePushViewHolder.isPking());
bundle.putBoolean(Constants.OPEN_FLASH, mLivePushViewHolder != null && mLivePushViewHolder.isFlashOpen());
fragment.setArguments(bundle);
fragment.setFunctionClickListener(this);

View File

@ -704,6 +704,13 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
}
}
public boolean isPking() {
if (btn_close != null) {
return btn_close.getVisibility() == View.VISIBLE;
}
return false;
}
@Override
public void onPause() {
mPaused = true;