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 @@ -375,7 +375,7 @@ public void onPostExecute(Float percentRevealed) {
}
}
}
}.execute(left, top, width, height);
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, left, top, width, height);

}
}
Expand All @@ -395,6 +395,13 @@ public int[] getImageBounds() {


Drawable drawable = getDrawable();

// if user has not provided the src or image resource
// we will use the frame drawable to get the height and width.
if (drawable == null) {
drawable = mDrawable;
}

Rect bounds = drawable.getBounds();

int width = drawable.getIntrinsicWidth();
Expand Down