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,8 +779,10 @@ public class LiveAudienceActivity extends LiveActivity {
} }
} }
GiftCacheUtil.getInstance().restart(); GiftCacheUtil.getInstance().restart();
new Handler(Looper.getMainLooper()).postDelayed(() -> OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE, if (manager.isEnterRoom()) {
LiveGuardInfo.isGuard(mLiveGuardInfo)), 400); new Handler(Looper.getMainLooper()).postDelayed(() -> OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE,
LiveGuardInfo.isGuard(mLiveGuardInfo)), 400);
}
} }
@Override @Override

View File

@ -263,7 +263,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
public void run() { public void run() {
loading.setVisibility(View.GONE); loading.setVisibility(View.GONE);
enterRoomLeaveHandler.post(enterRoomLeaveRunnable); enterRoomLeaveHandler.post(enterRoomLeaveRunnable);
OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE,LiveGuardInfo.isGuard(mLiveGuardInfo)); OpenAdManager.getInstance().show(OpenAdManager.TYPE_LIVE, LiveGuardInfo.isGuard(mLiveGuardInfo));
} }
}; };
final Runnable loadTimeoutRunnableGone = new Runnable() { final Runnable loadTimeoutRunnableGone = new Runnable() {
@ -2100,4 +2100,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.setGiftWall(giftWallLightenNumber, giftWallLightenTotal); mLiveRoomViewHolder.setGiftWall(giftWallLightenNumber, giftWallLightenTotal);
} }
} }
public boolean isEnterRoom() {
return isEnterRoom;
}
} }