From d1faaa9362f9f60f9a734756144d174e1dfac344 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 14 May 2020 03:47:51 +0100 Subject: [PATCH] don't display invites history if none exist --- .../main/java/io/lbry/browser/ui/wallet/InvitesFragment.java | 4 ++-- app/src/main/res/values-night/colors.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java index b1781b27..362d809b 100644 --- a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java @@ -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 ); } }); diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 1dca2ecc..8d01062d 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -21,7 +21,7 @@ #EEEEEE - #555555 + #757575 #999999 #333333 #5F5F5F