diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-10-20 17:29:44 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-11-12 13:56:14 -0800 |
commit | d30c141a2dee881fd83e1415a50161def1acf227 (patch) | |
tree | 7112178d0f0dd57f1e91cf4f45504fc6faf0305b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7a062ed396f6e563766367de70e0d9c6ba615fed (diff) |
Improve error reporting on Exceptions in fw views.
When there's an exception during the inflation of a framework view (for
example invalid attributes), report the exception correctly. The earlier
behaviour assumed the exception to be a ClassNotFoundException and tried
to load it from the user's project. This is not longer the case.
Also, update the MockView class to a FrameLayout with a single TextView.
This means that the MockView is a ViewGroup and will not choke when
someone attempts to add a View to it (although, the view will be
silently dropped).
Change-Id: Ice003817ceb627ebfbbbb245ab6be10f9141e728
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions