mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Pop the "Create backup now" sheet after different instances of subscribing to backups.
This commit is contained in:
@@ -382,6 +382,10 @@ class ConversationFragment :
|
||||
MessageRequestRepository(requireContext())
|
||||
}
|
||||
|
||||
private val checkoutLauncher by lazy {
|
||||
registerForActivityResult(CheckoutFlowActivity.Contract()) {}
|
||||
}
|
||||
|
||||
private val disposables = LifecycleDisposable()
|
||||
private val binding by ViewBinderDelegate(V2ConversationFragmentBinding::bind) { _binding ->
|
||||
_binding.conversationInputPanel.embeddedTextEditor.apply {
|
||||
@@ -2959,7 +2963,7 @@ class ConversationFragment :
|
||||
|
||||
override fun onCallToAction(action: String) {
|
||||
if ("gift_badge" == action) {
|
||||
startActivity(CheckoutFlowActivity.createIntent(requireContext(), InAppPaymentType.ONE_TIME_GIFT))
|
||||
checkoutLauncher.launch(InAppPaymentType.ONE_TIME_GIFT)
|
||||
} else if ("username_edit" == action) {
|
||||
startActivity(EditProfileActivity.getIntentForUsernameEdit(requireContext()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user