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
Recycled Bitmap FIX
Fixing of crash on few devices because of recycled bitmap issue.
  • Loading branch information
jurajjarabek committed May 5, 2014
commit 3d4cf4e713e2f031f827f3aa746b40b8845f9b09
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,11 @@ private void makeDefault() {
// Scale the image down for faster face detection.
private Bitmap prepareBitmap() {

if (mBitmap == null) {
if (mBitmap.isRecycled()) {

return null;
mBitmap = getBitmap( mImagePath );
}

// 256 pixels wide is enough.
if (mBitmap.getWidth() > 256) {

Expand Down