-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fix(deck-options): add progress bar to stop flickering #17891
Conversation
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.
seems good - only query is about handling e-ink, I think for them just no indicator and 300ms is...I dunno ...good performance for an e-ink device? so it's fine to just let it sit for a moment before webview is visible?
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.
Ah, cool re: respecting system settings. I guess this is a benefit of "not fighting the platform", or stated positively: "using platform built-in features", they already do so much of what you want. LGTM then
`deckOptionsReady` allows us to know exactly when the backend is ready, instead of showing the WebView in PageWebViewClient.onPageFinished Stop showing the WebView in `onPageFinished`, and wait for `deckOptionsReady` A `CircularProgressIndicator` has been added as the wait is noticeable (~300ms) Once the WebView is shown, hide the Progress Bar promiseToWaitFor and `:page-fully-loaded` are also removed as unused, and these were primarily for DeckOptions Fixes 14194 (better): deck options no longer flicker
930a522
to
d680390
Compare
Hi there @david-allison! This is the OpenCollective Notice for PRs merged from 2025-01-01 through 2025-01-31 |
Purpose / Description
This is the last of a series of 3 pull requests:
Fixes
Approach
deckOptionsReady
allows us to know exactly when the backend is ready, instead of showing the WebView inPageWebViewClient.onPageFinished
.Stop showing the WebView in
onPageFinished
, and wait fordeckOptionsReady
A
CircularProgressIndicator
has been added as the wait is noticeable (~300ms)Once the WebView is shown, hide the Progress Bar
promiseToWaitFor
and:page-fully-loaded
are also removed as unused, and these were primarily for DeckOptionsHow Has This Been Tested?
Personal S21 (Android 14)
Checklist