0609785e6f839bfd27e33fa2630e6a1c12be9a20 |
|
29-Mar-2017 |
Diego Perez <diegoperez@google.com> |
Make layoutlib more lenient with recoverable errors In many cases, throwing an exception will stop the inflation or rendering of a layout. Sometimes, we could recover from some of the failures and render a layout that is "usable". I've done a first pass trying to follow the following rules: - Try simple recoveries by choosing sensible defaults. Not trying complex recoveries. - Only recover if the exception is not part of the class behaviour. Avoided removing declared exceptions or exceptions that are expected by the framework. - I've kept assertions in place so, in most cases, the behaviour will be almost identical to the previous one with assertions enabled. Test: Checked with existing tests Change-Id: I0001fdd3c808cf405c4eb8d734b9bbe63493e05c
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|
a9d1c5b4e2bd54b0e77c817b0813bec6cddc0eac |
|
19-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix include tag rendering. A missing catch clause caused rendering to be failed when there is an include tag that doesn't specify layout_width and layout_height. Also improve the error messages to make debugging easier next time. Change-Id: I617762636973a010b34da167c7b5fcd328b7d178
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|
8599d17bc39e1c54797a9745e957f06beb552e4f |
|
01-May-2015 |
Alan Viverette <alanv@google.com> |
Fix layoutlib build breakage Change-Id: Id3a9b79ac47ef27b04a96ff3ee50688bbb58f9c0
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|
cc33f3b063765b5e706c2bb0fc2a0cf7197f105c |
|
20-Mar-2015 |
Alan Viverette <alanv@google.com> |
Correctly apply android:theme attribute from <include> tag Bug: 19865544 Change-Id: I6b50fa9f28a9d7f1685f9f55e505c630c12c53a2
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|
93cf45480ae10b8cc16e2c831c421dc1982814d5 |
|
09-Jan-2014 |
Alan Viverette <alanv@google.com> |
Update BridgeInflater and delegate to support inheritContext arg Change-Id: I06673f35cd4625301677f74f3e6d49669df7c271
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|
ab775ecdd189b32e35b0d3f4a821502f88b03a4b |
|
24-Jan-2014 |
Adam Lesinski <adamlesinski@google.com> |
Revert "Move frameworks/base/tools/ to frameworks/tools/" This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/layoutlib/bridge/src/android/view/LayoutInflater_Delegate.java
|