Fix issue with icon pop in attachment keyboard.

This commit is contained in:
Alex Hart
2023-07-20 16:44:54 -03:00
parent b887129cd7
commit 4520ff78ff
2 changed files with 7 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ public class AttachmentKeyboard extends FrameLayout implements InputAwareLayout.
this.permissionButton = findViewById(R.id.attachment_keyboard_permission_button);
RecyclerView buttonList = findViewById(R.id.attachment_keyboard_button_list);
buttonList.setItemAnimator(null);
mediaAdapter = new AttachmentKeyboardMediaAdapter(GlideApp.with(this), media -> {
if (callback != null) {

View File

@@ -67,6 +67,12 @@ class AttachmentKeyboardFragment : LoggingFragment(R.layout.attachment_keyboard_
.addTo(lifecycleDisposable)
conversationViewModel = ViewModelProvider(requireParentFragment()).get(ConversationViewModel::class.java)
val snapshot = conversationViewModel.recipientSnapshot
if (snapshot != null) {
updatePaymentsAvailable(snapshot)
}
conversationViewModel
.recipient
.observeOn(AndroidSchedulers.mainThread())