Пример #1
0
  @Override
  protected void onException(Exception e) throws RuntimeException {
    super.onException(e);

    Log.d(TAG, "Exception opening random Gist", e);
    ToastUtils.show((Activity) getContext(), e.getMessage());
  }
  @Override
  protected void onException(Exception e) throws RuntimeException {
    super.onException(e);

    Log.d(TAG, "Exception deleting comment on issue", e);

    ToastUtils.show((Activity) getContext(), e.getMessage());
  }
  @Override
  public void onLoadFinished(Loader<CharSequence> loader, CharSequence rendered) {
    if (rendered == null) ToastUtils.show(this, R.string.error_rendering_markdown);

    ViewUtils.setGone(loadingBar, true);
    ViewUtils.setGone(codeView, false);

    if (!TextUtils.isEmpty(rendered)) {
      renderedMarkdown = rendered.toString();
      if (markdownItem != null) markdownItem.setEnabled(true);
      editor.setMarkdown(true).setSource(file, renderedMarkdown, false);
    }
  }