[Toolbar redesign] Migrate from rememberRipple() to ripple()
Categories
(Firefox for Android :: Toolbar, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: royang, Assigned: royang)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
The reason as follows:
- Visual feedback ripple it cant be seen because of menu and user's thumb/finger.
- Haptic feedback on long pressing.
- Performance gain with no ripple effect set (due to
rememberRipple)
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Maybe a better solution is to move from rememberRipple to ripple
https://developer.android.com/develop/ui/compose/touch-input/user-interactions/migrate-indication-ripple#using-material
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
Waiting for Compose Material version 1.7
| Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
(In reply to Chris Peterson [:cpeterson] from comment #3)
Waiting for Compose Material version 1.7
Which is now conveniently available.
Comment 5•2 years ago
|
||
Comment 6•2 years ago
|
||
It should no longer be needed with Compose 1.7 and Ripple API changes.
Comment 7•2 years ago
|
||
Comment 8•2 years ago
|
||
Comment 9•2 years ago
|
||
Modifier.kt:49: Error: Using Modifier.then with a Modifier factory function with an implicit receiver [SuspiciousModifierThen from androidx.compose.ui]
ReorderableList.kt:283: Error: Using Modifier.then with a Modifier factory function with an implicit receiver [SuspiciousModifierThen from androidx.compose.ui]
https://googlesamples.github.io/android-custom-lint-rules/checks/SuspiciousModifierThen.md.html
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Here's a perfherder comparison link for perftest-android-hw-a51-startup-fenix-cold for this patchset vs. plain m-c tip (which includes the fix from bug 1915975):
https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=ecb01ec517d59b7967c84a62b48aee02d8e36ca3&newProject=try&newRevision=9d52896824eabb7f0d4e78ccc21c769e78040669&framework=15&page=1
Looks like it's pretty neutral to a slight improvement. Over to you for more testing, Roger!
| Assignee | ||
Comment 12•2 years ago
|
||
looks great. I did a profile with your changes and the rememberRipple performance cost is definitely gone. Please feel free to move forward with this. Thanks!
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1deb428dd28d
https://hg.mozilla.org/mozilla-central/rev/c36dc110dba3
https://hg.mozilla.org/mozilla-central/rev/d37d7be320ce
https://hg.mozilla.org/mozilla-central/rev/2801135d0ebe
https://hg.mozilla.org/mozilla-central/rev/fd44a9da188a
https://hg.mozilla.org/mozilla-central/rev/4fe85c6bb778
https://hg.mozilla.org/mozilla-central/rev/c37b6b3302f8
Description
•