commit | d8d0ad2bb6b52095b77c537bdd4b79e642361b94 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Wed Jan 11 13:30:50 2017 -0800 |
committer | Ben Lin <linben@google.com> | Wed Jan 11 23:49:31 2017 +0000 |
tree | 6bddf134d0918357e89518fe7ddc969e02ca8996 | |
parent | 2f976b9a58aaf811fd6bb51bae8c80ec68d8a5a9 [diff] |
Proper ActionMode clean up when spring opening directories. Since ActionMode has an assert that it should be null when being reset, there was a crash for the case of spring opening directories due to actionMode.finish() not properly called before opening the directory. This now ensures actionMode.finish() is called beforehand. Test: Wrote ActionHandlerTest#testSpringOpenDirectory. Bug: 32749167 Change-Id: Ifa39e9fcf02f4f848ea5cf4f26b01280d32a47c0