mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2026-02-01 15:56:14 +00:00
validating again if repo has an issue or no to disable going to issuesPagerView
This commit is contained in:
parent
51dea58e5a
commit
95049cd155
@ -235,6 +235,7 @@ class RepoPagerPresenter extends BasePresenter<RepoPagerMvp.View> implements Rep
|
||||
}
|
||||
break;
|
||||
case RepoPagerMvp.ISSUES:
|
||||
if ((getRepo() != null && !getRepo().isHasIssues())) return;
|
||||
if (repoIssuesPagerView == null) {
|
||||
onAddAndHide(fragmentManager, RepoIssuesPagerView.newInstance(repoId(), login()), currentVisible);
|
||||
} else {
|
||||
@ -272,6 +273,9 @@ class RepoPagerPresenter extends BasePresenter<RepoPagerMvp.View> implements Rep
|
||||
}
|
||||
|
||||
@Override public void onMenuItemSelect(@IdRes int id, int position, boolean fromUser) {
|
||||
if (id == R.id.issues && (getRepo() != null && !getRepo().isHasIssues())) {
|
||||
return;
|
||||
}
|
||||
if (getView() != null && isViewAttached()) {
|
||||
getView().onNavigationChanged(position);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user