final SeafRepo repo = mActivity.getDataManager().getCachedRepoByID(repoId);
if (repo == null) {
ToastUtils.show(mActivity, getString(R.string.repo_not_found));
return;
}
<BUG>handleEncryptedRepo(repo, new TaskDialog.TaskDialogListener() {
</BUG>
@Override
public void onTaskSuccess() {
LoadHistoryChangesTask task = new LoadHistoryChangesTask(seafEvent);

final SeafRepo repo = mActivity.getDataManager().getCachedRepoByID(repoId);
if (repo == null) {
ToastUtils.show(mActivity, getString(R.string.repo_not_found));
return;
}
final boolean continueProcess = mActivity.handleEncryptedRepo(repo, new TaskDialog.TaskDialogListener() {
@Override
public void onTaskSuccess() {
LoadHistoryChangesTask task = new LoadHistoryChangesTask(seafEvent);
