mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 18:36:49 +00:00
Fix ViewCapture NPE.
The ViewPropertyRefs, when copied from 1 frame to another, where also transferring the same "next" reference. Sometimes, the recycled ViewPropertyRef would be the same ViewPropertyRef instance as one of the copied ViewPropertyRefs, which would caused an NPE, since the recycled VPR would have it's next value set to null. Bug: 249125402 Test: Repro steps are dragging and dropping around an item on the workspace to different locations. This consistently repro's the crash in about 10 seconds of doing this. Afte the fix, the crash stopped. Change-Id: Ia43d8f788eb4889c0890fea0bb839cb9fed78ada
This commit is contained in:
@@ -421,7 +421,6 @@ public class ViewCapture {
|
||||
out.visibility = this.visibility;
|
||||
out.willNotDraw = this.willNotDraw;
|
||||
out.clipChildren = this.clipChildren;
|
||||
out.next = this.next;
|
||||
out.elevation = this.elevation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user