mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-08 22:34:12 +01:00
Fix media review confirm button color.
Closes signalapp/Signal-Android#14683
This commit is contained in:
committed by
Michelle Tang
parent
15a17adf1a
commit
333e514a2f
+5
@@ -1,12 +1,14 @@
|
||||
package org.thoughtcrime.securesms.mediasend.v2.review
|
||||
|
||||
import android.content.DialogInterface
|
||||
import android.content.res.ColorStateList
|
||||
import android.os.Bundle
|
||||
import android.view.ContextThemeWrapper
|
||||
import android.view.KeyEvent
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.widget.addTextChangedListener
|
||||
import androidx.fragment.app.FragmentManager
|
||||
import androidx.fragment.app.viewModels
|
||||
@@ -226,6 +228,9 @@ class AddMessageDialogFragment : KeyboardEntryDialogFragment(R.layout.v2_media_a
|
||||
|
||||
Recipient.live(recipientId).observe(viewLifecycleOwner) { recipient ->
|
||||
this.recipient = recipient
|
||||
|
||||
val confirmButton = requireView().findViewById<View>(R.id.confirm_button)
|
||||
ViewCompat.setBackgroundTintList(confirmButton, ColorStateList.valueOf(recipient.chatColors.asSingleColor()))
|
||||
mentionsViewModel.onRecipientChange(recipient)
|
||||
|
||||
binding.content.addAMessageInput.setMentionValidator { annotations ->
|
||||
|
||||
Reference in New Issue
Block a user