We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 503a6f0 + e50751e commit fb87221Copy full SHA for fb87221
library/src/main/java/com/opensource/svgaplayer/SVGAImageView.kt
@@ -256,6 +256,9 @@ open class SVGAImageView : ImageView {
256
257
@SuppressLint("ClickableViewAccessibility")
258
override fun onTouchEvent(event: MotionEvent?): Boolean {
259
+ if (mVideoItem == null) {
260
+ return super.onTouchEvent(event)
261
+ }
262
event?.let {
263
if(event.action == MotionEvent.ACTION_DOWN){
264
val drawable = drawable as? SVGADrawable ?: return false
@@ -267,9 +270,6 @@ open class SVGAImageView : ImageView {
267
270
}
268
271
269
272
-
273
274
275
0 commit comments