Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void showProgressbar(boolean show) {
}

@Override
public void showClientInformation(Client client) {
public void showClientInformation(final Client client) {
if (client != null) {
setToolbarTitle(getString(R.string.client) + " - " + client.getLastname());
isClientActive = client.isActive();
Expand Down Expand Up @@ -481,6 +481,9 @@ public void onClick(View view) {
PopupMenu menu = new PopupMenu(getActivity(), view);
menu.getMenuInflater().inflate(R.menu.client_image_popup, menu
.getMenu());
if (!client.isImagePresent()) {
menu.getMenu().findItem(R.id.client_image_remove).setVisible(false);
}
menu.setOnMenuItemClickListener(
new PopupMenu.OnMenuItemClickListener() {
@Override
Expand Down