Clean up some unused feature flags.

This commit is contained in:
Greyson Parrelli
2022-09-28 09:43:57 -04:00
committed by Cody Henthorne
parent 7fef1b060f
commit 0e4bec3977
8 changed files with 12 additions and 72 deletions

View File

@@ -108,17 +108,13 @@ public class ManageProfileFragment extends LoggingFragment {
}
});
if (FeatureFlags.donorBadges()) {
binding.manageProfileBadgesContainer.setOnClickListener(v -> {
if (Recipient.self().getBadges().isEmpty()) {
BecomeASustainerFragment.show(getParentFragmentManager());
} else {
SafeNavigation.safeNavigate(Navigation.findNavController(v), ManageProfileFragmentDirections.actionManageProfileFragmentToBadgeManageFragment());
}
});
} else {
binding.manageProfileBadgesContainer.setVisibility(View.GONE);
}
binding.manageProfileBadgesContainer.setOnClickListener(v -> {
if (Recipient.self().getBadges().isEmpty()) {
BecomeASustainerFragment.show(getParentFragmentManager());
} else {
SafeNavigation.safeNavigate(Navigation.findNavController(v), ManageProfileFragmentDirections.actionManageProfileFragmentToBadgeManageFragment());
}
});
binding.manageProfileAvatar.setOnClickListener(v -> {
startActivity(AvatarPreviewActivity.intentFromRecipientId(requireContext(), Recipient.self().getId()),