commit | 1e91e474f7e0d3cc8e57b702e6bb21563a00ca98 | [log] [tgz] |
---|---|---|
author | Julia Kawano <juliakawano@google.com> | Wed Sep 09 06:16:41 2020 +0000 |
committer | Julia Kawano <juliakawano@google.com> | Fri Sep 11 05:04:04 2020 +0000 |
tree | 9021b3f3ca70b2b6bc551303319750c210bd6def | |
parent | 28733d027585d7fb6e236658030c8a23c3986f66 [diff] |
Fix crash from UserNameViewController.removeAll() The UserNamveViewController was calling removeListener() before the listener had been registered. Added a boolean mRegistered to check if the listener has been registered before removing it and added a test that calls removeAll() before a listener is registered. Bug: 168065924 Test: atest UserNameViewControllerTest Change-Id: If24374e51a61c943142ba3a8794aca548dd241cc