commit | bd66c449f043061a387d3319e5e4701ca2ecb964 | [log] [tgz] |
---|---|---|
author | Gary Mai <garymai@google.com> | Thu Oct 13 10:34:42 2016 -0700 |
committer | Gary Mai <garymai@google.com> | Thu Oct 13 10:34:42 2016 -0700 |
tree | fd731be689c0210db7cdb0f31c7ffd1dbde5393b | |
parent | f785a2a2a685d972aa47cdbd36779e9d14b9ab04 [diff] |
Prevent multiple editors from opening Before we start the editor, destroy the loader so it isn't listening for changes to CP2 which would cause it to reload and go through the loadEditor code path again. Test: Added a manual forceLoad (after the loadEditor call) in onLoadFinished and saw that it started more than one editor. Added the destroyLoader call and confirmed even with the above only one instance opened. Bug: 32119921 Change-Id: Ib683cb60175fd816b38bd8b6d12b445ca236cd9e