Skip to content

Commit

Permalink
Delete obsoleted version check
Browse files Browse the repository at this point in the history
  • Loading branch information
r-ralph committed Nov 17, 2021
1 parent 133d7d6 commit ab6ad2e
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -20,7 +20,6 @@ import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.os.Build
import android.os.Trace
import android.util.Log
import androidx.annotation.IntRange
Expand Down Expand Up @@ -63,11 +62,7 @@ internal class Apng(
private val bitmap: Bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)

val byteCount: Int
get() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
bitmap.allocationByteCount
} else {
bitmap.rowBytes * height
}
get() = bitmap.allocationByteCount

init {
Trace.beginSection("Apng#draw")
Expand Down

0 comments on commit ab6ad2e

Please sign in to comment.