private void changeBranch() {
    GetRepoBranchesClient repoBranchesClient = new GetRepoBranchesClient(this, getRepoInfo());
    repoBranchesClient.setOnResultCallback(
        new DialogBranchesCallback(this, getRepoInfo()) {
          @Override
          protected void onBranchSelected(String branch) {
            currentRepo.default_branch = branch;
            if (getSupportActionBar() != null) {
              getSupportActionBar().setSubtitle(branch);
            }
            if (listFragments != null) {
              for (Fragment fragment : listFragments) {
                if (fragment instanceof BranchManager) {
                  ((BranchManager) fragment).setCurrentBranch(branch);
                }
              }
            }
          }

          @Override
          protected void onNoBranches() {}
        });
    repoBranchesClient.execute();
  }