Merge remote-tracking branch 'origin/master'

This commit is contained in:
18142669586 2022-08-31 20:32:50 +08:00
commit ba4de13cc3

View File

@ -1125,6 +1125,7 @@ public class LiveGiftAnimPresenter {
}); });
} else { } else {
GifCacheUtil.getFile(Constants.GIF_GIFT_PREFIX + bean.getGiftId(), url, "1", mDownloadGifCallback); GifCacheUtil.getFile(Constants.GIF_GIFT_PREFIX + bean.getGiftId(), url, "1", mDownloadGifCallback);
} }
} }
} }
@ -1234,7 +1235,13 @@ public class LiveGiftAnimPresenter {
public void onFinished() { public void onFinished() {
mSVGAImageView.clear(); mSVGAImageView.clear();
mSVGAImageView.setVisibility(View.GONE); 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 @Override