Search in sources :

Example 1 with RefDialog

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

the class CommitListFragment method switchRefs.

private void switchRefs() {
    if (ref == null) {
        return;
    }
    if (dialog == null) {
        dialog = new RefDialog((BaseActivity) getActivity(), REF_UPDATE, repository);
    }
    GitReference reference = GitReference.builder().ref(ref).build();
    dialog.show(reference);
}
Also used : RefDialog(com.github.pockethub.android.ui.ref.RefDialog) BaseActivity(com.github.pockethub.android.ui.BaseActivity) GitReference(com.meisolsson.githubsdk.model.git.GitReference)

Aggregations

BaseActivity (com.github.pockethub.android.ui.BaseActivity)1 RefDialog (com.github.pockethub.android.ui.ref.RefDialog)1 GitReference (com.meisolsson.githubsdk.model.git.GitReference)1