-
Notifications
You must be signed in to change notification settings - Fork 6
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
[ABW-2732] Fix transaction preview screen scroll #779
[ABW-2732] Fix transaction preview screen scroll #779
Conversation
// if max value of the scroll is less than the height of the preview header then don't use the animation | ||
// the + 100 is for these cases where the warnings at the bottom of the receipt are visible (e.g. congested network) | ||
if (scrollState.maxValue <= size.height + 100) { |
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.
R.raw.transaction_review_top_bar_scene | ||
).readBytes().decodeToString() | ||
.fillMaxWidth() | ||
.onGloballyPositioned { layoutCoordinates -> |
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.
👍
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.
Tested with multiple transactions and no flickering anymore 🎉
Unfortunately I could make it again flicker, this is easier to reproduce when the bottom bar is a bit bigger due to some warnings shown. Here is the commit 89837f9 The way it works is by copying the implementation of the Internal transfer |
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.
we should probably remove motion scene xml for previous solution if it is not used anymore
You are right forgot about that |
5fc0a3c
to
fb6e3bb
Compare
transaction preview screen based on zeplin
added receipt edge in the TransactionPreviewHeader
28e7c4d
to
3cdd04d
Compare
Quality Gate failedFailed conditions 0.0% Coverage on New Code (required ≥ 40%) |
Description
Edit: new solution by @micbakos-rdx was introduced here
This PR fixes:
If you guys have a more elegant/fancy solution, please suggest!
How to test
Video
Transaction.preview.scroll.Samsung.mp4
transaction.preview.scroll.xiaomi.mp4
PR submission checklist