/**
  * Start an activity to view the given repository
  *
  * @param repository
  */
 @Override
 protected void viewRepository(Repository repository) {
   if (!repo.generateId().equals(repository.generateId())) super.viewRepository(repository);
 }
  @Override
  public void onAttach(Activity activity) {
    super.onAttach(activity);

    repo = getSerializableExtra(EXTRA_REPOSITORY);
  }