修复:
修改坐骑特效的设置
This commit is contained in:
parent
c1ee03ccbd
commit
112125bd69
@ -24,6 +24,7 @@ import android.widget.MediaController;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.opensource.svgaplayer.SVGACallback;
|
||||
import com.opensource.svgaplayer.SVGAImageView;
|
||||
import com.opensource.svgaplayer.SVGAParser;
|
||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
@ -313,10 +314,35 @@ public class LiveEnterRoomAnimPresenter {
|
||||
}
|
||||
} else {
|
||||
if (mSVGImageView != null) {
|
||||
mSVGImageView.setVisibility(View.VISIBLE);
|
||||
SVGARect rect = svgaVideoEntity.getVideoSize();
|
||||
mSVGImageView.setVideoItem(svgaVideoEntity);
|
||||
mSVGImageView.setLoops(1);
|
||||
mSVGImageView.startAnimation();
|
||||
mSVGImageView.setCallback(new SVGACallback() {
|
||||
@Override
|
||||
public void onPause() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinished() {
|
||||
mSVGImageView.clear();
|
||||
mSVGImageView.setVisibility(View.GONE);
|
||||
mIsAnimating = false;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRepeat() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStep(int i, double v) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
mIsAnimating = false;
|
||||
@ -416,6 +442,8 @@ public class LiveEnterRoomAnimPresenter {
|
||||
}
|
||||
if (IMLoginManager.get(mContext).isMountEffect()) {
|
||||
GifCacheUtil.getFile(Constants.GIF_CAR_PREFIX + id, url1, "0", mDownloadGifCallback);
|
||||
} else {
|
||||
mIsAnimating = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user