commit | 8ef00b28987a6526dd3a5490d7baf7431668610a | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Mon Aug 09 14:52:12 2021 +0100 |
committer | Jerome Gaillard <jgaillard@google.com> | Wed Sep 08 10:22:25 2021 +0000 |
tree | da1aa33173187bd9226ef0e2528ed9897a418595 | |
parent | 8b6b5d323fa8328d9fc523cce6995f2621a8dbd0 [diff] |
Avoid native crash triggered by Canvas.getClipBounds(Rect) When Canvas.getClipBounds(Rect) is called with a null argument, which is explicitely allowed, it causes a crash in Android. This delegates the method to throw an exception in this case for layoutlib instead. Bug: N/A Test: N/A Change-Id: If5bb6dec37a84204de303cd81cb87d0d4c66a03b (cherry picked from commit 3107c166b47fc20064b09c38b6bf17258d416f70)