Merge "Better workaround for the bitmap invalidation problem."
This commit is contained in:
committed by
Android (Google) Code Review
commit
998d4570bd
@@ -88,9 +88,8 @@ public class ImageProcessingActivity extends Activity
|
||||
}
|
||||
|
||||
// This is a hack to work around an invalidation bug
|
||||
mBitmapOut = Bitmap.createBitmap(mBitmapOut);
|
||||
mBitmapOut.setPixel(0, 0, 0);
|
||||
mOutPixelsAllocation.copyTo(mBitmapOut);
|
||||
mDisplayView.setImageBitmap(mBitmapOut);
|
||||
mDisplayView.invalidate();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user