update 弹窗

This commit is contained in:
zlzw 2023-09-15 18:28:46 +08:00
parent a876018b0a
commit 9ec241f2a3
2 changed files with 9 additions and 3 deletions

View File

@ -779,9 +779,11 @@ public class LiveAudienceActivity extends LiveActivity {
} }
} }
GiftCacheUtil.getInstance().restart(); GiftCacheUtil.getInstance().restart();
if (manager.isEnterRoom()) {
new Handler(Looper.getMainLooper()).postDelayed(() -> OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE, new Handler(Looper.getMainLooper()).postDelayed(() -> OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE,
LiveGuardInfo.isGuard(mLiveGuardInfo)), 400); LiveGuardInfo.isGuard(mLiveGuardInfo)), 400);
} }
}
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {

View File

@ -2100,4 +2100,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setGiftWall(giftWallLightenNumber, giftWallLightenTotal); mLiveRoomViewHolder.setGiftWall(giftWallLightenNumber, giftWallLightenTotal);
} }
} }
public boolean isEnterRoom() {
return isEnterRoom;
}
} }