Skip to content

Conversation

@jbsession
Copy link
Collaborator

SES-4683

This PR removes IME insets from the new message FAB. The view is not really "squashed" but rather we can see the FAB above the IME when we type from the Start conversation bottom sheet.

ui_fab.mov

@jbsession jbsession requested review from SessionHero01 and ThomasSession and removed request for ThomasSession October 22, 2025 06:58
}
)

ViewCompat.setOnApplyWindowInsetsListener(binding.newConversationButton) { view, insets ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this have to be done separately instead of in the alsoApply above, which is there to deal with extra elements like this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newConversationButton doesn't want to move with the IME inset so these two needs different typemasks. I added a commit that updates applySafeInsetsMargins to take an optional param for insets that we can use as offsets and used it on newConversationButton.

@jbsession jbsession merged commit 9c79853 into session-foundation:dev Oct 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants