Fix a bunch UX bugs for donor badges.

This commit is contained in:
Alex Hart
2021-11-11 13:46:38 -04:00
committed by GitHub
parent 5047fc54f2
commit ca24682366
37 changed files with 450 additions and 47 deletions

View File

@@ -226,7 +226,11 @@ public class ManageProfileFragment extends LoggingFragment {
}
private void presentBadge(@NonNull Optional<Badge> badge) {
badgeView.setBadge(badge.orNull());
if (badge.isPresent() && badge.get().getVisible() && !badge.get().isExpired()) {
badgeView.setBadge(badge.orNull());
} else {
badgeView.setBadge(null);
}
}
private void presentEvent(@NonNull ManageProfileViewModel.Event event) {