commit | 0b83954f1c86a5269b4b863e6ad0958dba03fed9 | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Tue May 23 17:01:39 2017 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Wed May 24 17:06:20 2017 -0700 |
tree | 0c07f4db77cd7a3e818a503cdb954b2451371a7d | |
parent | 7226c9f4c4c8cc6e2911d6c617292a5dfcf9dfbe [diff] |
Add NPE check for refreshUi The reason for NPE is that callback is registered too early, so one callback is invoked before controller is fully inited. This cl fix it in two ways: 1. Add NPE check in refreshUi, since this method in InstalledAppDetail is robost to NPE 2. Move the callback to the end of constructor. Bug: 37913054 Test: RunSettingsRoboTests Change-Id: I54b03fb51a958a8e63bfe8a7ccfda79be1fa1956