commit | 035f0c8a6f8f2f5515ee30272b5343ec4095f8c0 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Thu Jul 14 10:40:00 2016 -0700 |
committer | Ben Lin <linben@google.com> | Fri Jul 15 10:09:03 2016 -0700 |
tree | 0a46be2894061c9ddc541ff4e7fafe1470187f9c | |
parent | 40be122b649429f22d8a0d77af9432124f17656f [diff] |
Fix a crash happening on a context menu. When an activity gets a callback for onContextItemSelected, it first gets dibs on handling it, and then it propagates the call to -every- fragment it is tied to. This poses a problem since RootsFragment and DirectoryFragment don't necessarily handle each other's menu items well, which can cause NPEs. This is some temporary fix for it. Bug: 30092676 Change-Id: I3f268c9c9580504b78581ad92a24c9a99c4a0daf