don't display invites history if none exist
This commit is contained in:
parent
aad718c714
commit
d1faaa9362
2 changed files with 3 additions and 3 deletions
|
@ -418,14 +418,14 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
|
|||
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
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue