commit | c2f913d09be9b7db40f8135b61d3372dbcb30808 | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Mon Feb 01 12:03:48 2016 -0800 |
committer | Philip P. Moltmann <moltmann@google.com> | Mon Feb 01 13:03:44 2016 -0800 |
tree | df4093fb7c6c813db83674ca7b57d384fbd215cf | |
parent | 1a8fbfce6f40db2a26e2abf1fd43c5c59c8daf86 [diff] |
Only update UI when bound If the PrintActivity gets destroyed (e.g. due to low memory) it gets re-created when the PrintToPDF activity returns in onActivityResult. In this case onActivityResult is called right after onCreate and before the UI is bound. This resulted in a NullPointerException when accessing the unbound UI elements. Bug: 21749058 Change-Id: I44e625e8c4f10432591d0afcf7825d7e0dbee6f5