Skip to content

Conversation

lucamoroz
Copy link
Collaborator

@lucamoroz lucamoroz requested a review from nicomazz September 8, 2019 17:49
Copy link
Owner

@nicomazz nicomazz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ma troppi cambiamenti, non sono riuscito a leggerla tutta infatti:( Sarei piu' per tante PR piccole, eventualmente una sopra l'altra, cosi' sarebbero stra piu' facili da revisionare (:


when {
args.user != null -> setupUserJobsView(args.user as User)
args.showFavorites -> showFavorites()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm e' ok, ma invece di fare cosi', farei una sottoclasse di questa per i preferiti, e aprirei direttamente quella

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si probabilmente è più pulito


override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
// hide menu actions if we are showing some user's jobs/proposals or favorites
if (args.user != null || args.showFavorites) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Facendo una sottoclasse non dovremmo necessariamente usare questi if (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants