The addition of the onBackPressed callback in 3125cb2c overrides the browser onBackPressed behavior by forcing finish() instead of going back up the directory tree.