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