Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ public void start() {
this.frameSeqDecoder.stop();
}
this.frameSeqDecoder.reset();
innerStart();
if (isVisible()) {
innerStart();
}
}

private void innerStart() {
Expand Down Expand Up @@ -172,7 +174,7 @@ public boolean isRunning() {
}

@Override
public void draw(Canvas canvas) {
public void draw(@NonNull Canvas canvas) {
if (bitmap == null || bitmap.isRecycled()) {
return;
}
Expand Down Expand Up @@ -355,4 +357,12 @@ public void invalidateSelf() {
public Decoder getFrameSeqDecoder() {
return frameSeqDecoder;
}

protected Bitmap getBitmap() {
return bitmap;
}

protected DrawFilter getDrawFilter() {
return drawFilter;
}
}