Search in sources :

Example 1 with MarkdownLoader

use of com.github.pockethub.android.ui.MarkdownLoader in project PocketHub by pockethub.

the class BranchFileViewActivity method onCreateLoader.

@Override
public Loader<CharSequence> onCreateLoader(int loader, Bundle args) {
    final String raw = args.getString(ARG_TEXT);
    final Repository repo = args.getParcelable(ARG_REPO);
    return new MarkdownLoader(this, repo, raw, imageGetter, false);
}
Also used : Repository(com.meisolsson.githubsdk.model.Repository) MarkdownLoader(com.github.pockethub.android.ui.MarkdownLoader)

Example 2 with MarkdownLoader

use of com.github.pockethub.android.ui.MarkdownLoader in project PocketHub by pockethub.

the class RenderedCommentFragment method onCreateLoader.

@Override
public Loader<CharSequence> onCreateLoader(int loader, Bundle args) {
    final CharSequence raw = args.getCharSequence(ARG_TEXT);
    final Repository repo = args.getParcelable(ARG_REPO);
    return new MarkdownLoader(getActivity(), repo, raw.toString(), imageGetter, true);
}
Also used : Repository(com.meisolsson.githubsdk.model.Repository) MarkdownLoader(com.github.pockethub.android.ui.MarkdownLoader)

Example 3 with MarkdownLoader

use of com.github.pockethub.android.ui.MarkdownLoader in project PocketHub by pockethub.

the class CommitFileViewActivity method onCreateLoader.

@Override
public Loader<CharSequence> onCreateLoader(int loader, Bundle args) {
    final String raw = args.getString(ARG_TEXT);
    final Repository repo = args.getParcelable(ARG_REPO);
    return new MarkdownLoader(this, repo, raw, imageGetter, false);
}
Also used : Repository(com.meisolsson.githubsdk.model.Repository) MarkdownLoader(com.github.pockethub.android.ui.MarkdownLoader)

Aggregations

MarkdownLoader (com.github.pockethub.android.ui.MarkdownLoader)3 Repository (com.meisolsson.githubsdk.model.Repository)3