Implemented SlideshowActivity's onOptionsItemSelected method.