Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #266 from xxjy/master
Browse files Browse the repository at this point in the history
fix bug: App crashes on API level below 21 caused by constructor.
  • Loading branch information
PonyCui authored Jul 17, 2020
2 parents dfc0edb + 428dc7a commit 06d8ad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import java.net.URL
/**
* Created by PonyCui on 2017/3/29.
*/
@Suppress("NewApi")
open class SVGAImageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0)
: ImageView(context, attrs, defStyleAttr, defStyleRes) {
open class SVGAImageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)
: ImageView(context, attrs, defStyleAttr) {

enum class FillMode {
Backward,
Expand Down
2 changes: 0 additions & 2 deletions library/src/main/java/com/opensource/svgaplayer/SVGAPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ class SVGAPlayer: SVGAImageView {

constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {}

constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes) {}

}

0 comments on commit 06d8ad4

Please sign in to comment.