File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/main/java/com/opensource/svgaplayer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ open class SVGAImageView : ImageView {
112
112
URL (it)?.let {
113
113
parser.parse(it, object : SVGAParser .ParseCompletion {
114
114
override fun onComplete (videoItem : SVGAVideoEntity ) {
115
- handler.post {
115
+ handler? .post {
116
116
videoItem.antiAlias = antiAlias
117
117
setVideoItem(videoItem)
118
118
if (typedArray.getBoolean(R .styleable.SVGAImageView_autoPlay , true )) {
@@ -127,7 +127,7 @@ open class SVGAImageView : ImageView {
127
127
}
128
128
parser.parse(it, object : SVGAParser .ParseCompletion {
129
129
override fun onComplete (videoItem : SVGAVideoEntity ) {
130
- handler.post {
130
+ handler? .post {
131
131
videoItem.antiAlias = antiAlias
132
132
setVideoItem(videoItem)
133
133
if (typedArray.getBoolean(R .styleable.SVGAImageView_autoPlay , true )) {
You can’t perform that action at this time.
0 commit comments