Skip to content

Commit

Permalink
solve bug
Browse files Browse the repository at this point in the history
  • Loading branch information
domjos1994 committed Sep 16, 2019
1 parent aa39853 commit 222753c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ protected void manageControls(boolean editMode, boolean reset, boolean selected)
IFunctionImplemented iFunctionImplemented = this.bugService.getPermissions();
boolean isVisible = this.navigationView.getMenu().getItem(1).isVisible();
boolean canUpdate = iFunctionImplemented.updateIssues();
this.navigationView.setVisibility(canUpdate ? View.VISIBLE : View.GONE);
boolean canAdd = iFunctionImplemented.addIssues();
if (this.pid == null) {
this.navigationView.setVisibility(canAdd ? View.VISIBLE : View.GONE);
} else {
this.navigationView.setVisibility(canUpdate ? View.VISIBLE : View.GONE);
}

this.navigationView.getMenu().getItem(1).setEnabled(!editMode);
this.navigationView.getMenu().getItem(3).setEnabled(editMode || !isVisible);
Expand Down

0 comments on commit 222753c

Please sign in to comment.