Skip to content

Commit

Permalink
rm a log
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Apr 22, 2024
1 parent 52bd14e commit cca236c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package expo.modules.blueskygifview
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.Animatable
import android.util.Log
import androidx.appcompat.widget.AppCompatImageView

class AppCompatImageViewExtended(context: Context, val parent: GifView): AppCompatImageView(context) {
override fun onDraw(canvas: Canvas) {
Log.d("AppCompatImageViewExtended", "onDraw")
super.onDraw(canvas)
if (!parent.isPlaying) {
this.pause()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GifView(context: Context, appContext: AppContext) : ExpoView(context, appC
private val activity = appContext.currentActivity ?: throw Exceptions.MissingActivity()
private val glide = Glide.with(activity)
val imageView = AppCompatImageViewExtended(context, this)
private var isPlaying = true
var isPlaying = true
private var isLoaded = false

// Requests
Expand Down

0 comments on commit cca236c

Please sign in to comment.