mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Fix issue with icon pop in attachment keyboard.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user