don't display invites history if none exist

This commit is contained in:
Akinwale Ariwodola 2020-05-14 03:47:51 +01:00
parent aad718c714
commit d1faaa9362
2 changed files with 3 additions and 3 deletions

View file

@ -418,14 +418,14 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
inviteHistoryAdapter.addInvitees(invitees); inviteHistoryAdapter.addInvitees(invitees);
} }
Helper.setViewVisibility(inviteHistoryList, Helper.setViewVisibility(inviteHistoryList,
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() == 0 ? View.GONE : View.VISIBLE inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() < 2 ? View.GONE : View.VISIBLE
); );
} }
@Override @Override
public void onError(Exception error) { public void onError(Exception error) {
Helper.setViewVisibility(inviteHistoryList, Helper.setViewVisibility(inviteHistoryList,
inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() == 0 ? View.GONE : View.VISIBLE inviteHistoryAdapter == null || inviteHistoryAdapter.getItemCount() < 2 ? View.GONE : View.VISIBLE
); );
} }
}); });

View file

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