Fix problem on api 21
This commit is contained in:
parent
9197f871fd
commit
8ffdd2d998
|
@ -76,7 +76,9 @@ class ApngDecoder {
|
|||
val ihdr = IHDR()
|
||||
var isApng = false
|
||||
|
||||
val drawable = AnimationDrawable()
|
||||
val drawable = AnimationDrawable().apply {
|
||||
isOneShot = false
|
||||
}
|
||||
|
||||
var buffer : Bitmap? = null
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context=".fragments.ApngDecoderFragment">
|
||||
|
||||
<ImageView
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/apngDecoderImageView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".fragments.JavaFragment">
|
||||
|
||||
<ImageView
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/javaImageView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
|
Loading…
Reference in New Issue