-
Notifications
You must be signed in to change notification settings - Fork 238
Simplify message composer layout #4884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the code, and it fixes the extra padding issue 🎉 .
One "regression" though:
On my device, I cannot have a RichTextEditor fullscreen as before, i.e. switch to RTE, open the bottom sheet at maximum and close the keyboard. I get this:

and previously I was able to get this:

Also in this state (bottom sheet expanded, and keyboard closed, I cannot open the keyboard. I need to reduce the bottom sheet first. Strange, but not really new apparently.
This is expected, since we now set a max height for the bottom sheet. This is how it works on iOS, so I hope it's good enough, but the code could probably be tweaked to get actual full screen though.
Oh, I hadn't noticed this. I'll see if I can reproduce it. Now I see the issue: the problem is the actual backing |
05888ab
to
bed84b4
Compare
…implementation for the message composer
… focus and display the keyboard
bed84b4
to
b682450
Compare
|
parent?.requestDisallowInterceptTouchEvent(true) | ||
} | ||
|
||
override fun onTouchEvent(event: MotionEvent?): Boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Custom viewPreviewEditText
overridesonTouchEvent
but notperformClick
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4884 +/- ##
===========================================
- Coverage 80.30% 80.23% -0.08%
===========================================
Files 2155 2156 +1
Lines 57312 57346 +34
Branches 7220 7221 +1
===========================================
- Hits 46026 46010 -16
- Misses 8837 8881 +44
- Partials 2449 2455 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Content
ExpandableBottomSheetScaffold
, which usedSubcomposeLayout
and some quite complex logic to be able to measure and auto-size the composer in the bottom sheet. Instead, useExpandableBotttomSheetLayout
which uses a simpleLayout
withIntrinsicContentSize
measurements instead.ExpandableBottomSheetScaffold
.EditText
.Notes:
SubcomposeLayout
orLazyList
inside the bottom sheet contents, soSuggestionPickerView
had to be moved.Motivation and context
Simplify this layout so it won't break in the next Compose minor release.
Screenshots / GIFs
It should look exactly the same.
Tests
Use the reply, edit and normal writing functionality in both the standard textfield and the RTE. Also try mentioning users.
Tested devices
Checklist