Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dc8b365 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk
Browse files

Better workaround for the bitmap invalidation problem.

Change-Id: I9aa5ff9f68413ec36596d976a2e65b8ef272d56e
parent 2d039219
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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();
            }
        };