Android: Compress an if statement in FolderBrowser