Move event handling code out of DirectoryFragment

Bug:29575607
Change-Id: Ieae3bcee030973bf83551a74f722236a24832730
4 files changed