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 @@ -52,7 +52,9 @@ protected Bitmap doInBackground(String... params) {


private Bitmap loadBitmapByLocalResource(String uri) {
return BitmapFactory.decodeResource(this.context.getResources(), resourceDrawableIdHelper.getResourceDrawableId(this.context, uri));
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 3;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it needed to sub sample the image?

return BitmapFactory.decodeFile(uri, options);
}

private Bitmap loadBitmapByExternalURL(String uri) {
Expand Down