退出Activity时清理bitmap
退出LiveActivity时,清理SVGA 新增检测到触发未捕获异常闪退时,直接退出不再重新加载 优化一处LiveActivity所持有的静态view,防止内存泄漏 更新SVGAPlayer库
This commit is contained in:
@@ -66,7 +66,7 @@ dependencies {
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
compileOnly files('../libs/beautysdk-202202241203.aar')
|
||||
compileOnly files('../libs/library-release.aar')
|
||||
compileOnly files('../libs/svgaplayer-release-v1.1.aar')
|
||||
//直播
|
||||
api project(':live')
|
||||
//短视频
|
||||
|
||||
@@ -544,7 +544,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
svga.setImageDrawable(drawable);
|
||||
svga.startAnimation();
|
||||
SVGAViewUtils.playEndClear(svga,false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user