Update copy and icon for release channel boost button.

This commit is contained in:
Cody Henthorne
2022-06-30 12:42:26 -04:00
parent 7b805e4041
commit 12a7f36bec
4 changed files with 9 additions and 25 deletions

View File

@@ -2031,16 +2031,12 @@ public class ConversationFragment extends LoggingFragment implements Multiselect
@Override
public void onDonateClicked() {
if (SignalStore.donationsValues().isLikelyASustainer()) {
NavHostFragment navHostFragment = NavHostFragment.create(R.navigation.boosts);
NavHostFragment navHostFragment = NavHostFragment.create(R.navigation.boosts);
requireActivity().getSupportFragmentManager()
.beginTransaction()
.add(navHostFragment, "boost_nav")
.commitNow();
} else {
startActivity(AppSettingsActivity.subscriptions(requireContext()));
}
requireActivity().getSupportFragmentManager()
.beginTransaction()
.add(navHostFragment, "boost_nav")
.commitNow();
}
@Override

View File

@@ -538,13 +538,7 @@ public final class ConversationUpdateItem extends FrameLayout
}
});
if (SignalStore.donationsValues().isLikelyASustainer()) {
actionButton.setText(R.string.ConversationUpdateItem_signal_boost);
actionButton.setCompoundDrawablesRelativeWithIntrinsicBounds(R.drawable.ic_boost_outline_16, 0, 0, 0);
} else {
actionButton.setText(R.string.ConversationUpdateItem_become_a_sustainer);
actionButton.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);
}
actionButton.setText(R.string.ConversationUpdateItem_donate);
} else {
actionButton.setVisibility(GONE);
actionButton.setOnClickListener(null);