Fix problem on api 21

This commit is contained in:
oupson 2020-02-01 12:36:49 +01:00
parent 9197f871fd
commit 8ffdd2d998
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"