From b2bc8f00e20e44dc441f143bbf6d27b2ebf30e0b Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 31 Aug 2022 20:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=96=93UI=E4=BF=AE=E6=94=B9,=E7=A4=BC=E7=89=A9?= =?UTF-8?q?=E6=8E=92=E9=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/presenter/LiveGiftAnimPresenter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java index 9e2dcb816..84e7e2713 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveGiftAnimPresenter.java @@ -1125,6 +1125,7 @@ public class LiveGiftAnimPresenter { }); } else { GifCacheUtil.getFile(Constants.GIF_GIFT_PREFIX + bean.getGiftId(), url, "1", mDownloadGifCallback); + } } } @@ -1234,7 +1235,13 @@ public class LiveGiftAnimPresenter { public void onFinished() { mSVGAImageView.clear(); mSVGAImageView.setVisibility(View.GONE); - mShowGif = false; + long diffTime = 4000 - (System.currentTimeMillis() - mSvgaPlayTime); + if (diffTime < 0) { + diffTime = 0; + } + if (mHandler != null) { + mHandler.sendEmptyMessageDelayed(WHAT_GIF, diffTime); + } } @Override