Skip to content

Commit 9ecb44f

Browse files
committed
Remove unnecessary logic to clear the Simulator canvas
This was added to address a symptom of a deeper issue. The root cause of the issue has been fixed, so this isn't necessary any more. PiperOrigin-RevId: 798271446
1 parent 23c0d24 commit 9ecb44f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

simulator/src/main/java/org/robolectric/simulator/SimulatorCanvas.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public void drawBitmap(Bitmap bitmap) {
4444

4545
int width = bitmap.getWidth();
4646
int height = bitmap.getHeight();
47-
graphics.clearRect(0, 0, width, height);
48-
4947
if (pixels == null || pixels.length != width * height) {
5048
pixels = new int[width * height];
5149
}

0 commit comments

Comments
 (0)