Search in sources :

Example 1 with FullCommitFile

use of com.github.pockethub.android.core.commit.FullCommitFile in project PocketHub by pockethub.

the class CommitDiffListFragment method updateItems.

private void updateItems(List<GitComment> comments, List<FullCommitFile> files) {
    CommitFileListAdapter rootAdapter = adapter.getWrappedAdapter();
    rootAdapter.clear();
    for (FullCommitFile file : files) {
        rootAdapter.addItem(file);
    }
    for (GitComment comment : comments) {
        rootAdapter.addComment(comment);
    }
}
Also used : FullCommitFile(com.github.pockethub.android.core.commit.FullCommitFile) GitComment(com.meisolsson.githubsdk.model.git.GitComment)

Aggregations

FullCommitFile (com.github.pockethub.android.core.commit.FullCommitFile)1 GitComment (com.meisolsson.githubsdk.model.git.GitComment)1