Skip to content

Commit

Permalink
Fix Issue: #165
Browse files Browse the repository at this point in the history
  • Loading branch information
penfeizhou committed Sep 28, 2022
1 parent b70a1de commit e8f8fd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,8 @@ public int getSampleSize() {

public boolean setDesiredSize(int width, int height) {
boolean sampleSizeChanged = false;
int sample = getDesiredSample(width, height);
final int sample = getDesiredSample(width, height);
if (sample != this.sampleSize) {
this.sampleSize = sample;
sampleSizeChanged = true;
final boolean tempRunning = isRunning();
workerHandler.removeCallbacks(renderTask);
Expand All @@ -448,6 +447,7 @@ public boolean setDesiredSize(int width, int height) {
public void run() {
innerStop();
try {
sampleSize = sample;
initCanvasBounds(read(getReader(mLoader.obtain())));
if (tempRunning) {
innerStart();
Expand Down

0 comments on commit e8f8fd3

Please sign in to comment.