Skip to content

Commit

Permalink
don't display invites history if none exist
Browse files Browse the repository at this point in the history
  • Loading branch information
akinwale committed May 14, 2020
1 parent aad718c commit d1faaa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@ public void onSuccess(List<Invitee> invitees) {
inviteHistoryAdapter.addInvitees(invitees);
}
Helper.setViewVisibility(inviteHistoryList,
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() == 0 ? View.GONE : View.VISIBLE
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() < 2 ? View.GONE : View.VISIBLE
);
}

@Override
public void onError(Exception error) {
Helper.setViewVisibility(inviteHistoryList,
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() == 0 ? View.GONE : View.VISIBLE
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() < 2 ? View.GONE : View.VISIBLE
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<!-- At some point, these colours have to be renamed -->
<color name="darkForeground">#EEEEEE</color>
<color name="lightForeground">#555555</color>
<color name="lightForeground">#757575</color>
<color name="foreground">#999999</color>
<color name="mediaContainerBackground">#333333</color>
<color name="borderTextArea">#5F5F5F</color>
Expand Down

0 comments on commit d1faaa9

Please sign in to comment.