Repository navigation
Beta 7 visual fixes: panel blur, A to Z, segmented controls, App Library top row - #727
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bd8462ac19
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (indexed) IndexedList(listState, sections, sectionStarts(lead), ink, Modifier.fillMaxSize().testTag("all-apps-list"), content) | ||
| // A to Z on a tap in the empty field is a list of its own, new each time it shows: it opens at its top however far | ||
| // the tiles were scrolled (sharing their place, it opened that far down), and the tiles keep theirs for Cancel. | ||
| if (indexed) IndexedList(if (tappedAz) rememberLazyListState() else listState, sections, sectionStarts(lead), ink, Modifier.fillMaxSize().testTag("all-apps-list"), content) |
There was a problem hiding this comment.
Reset the tapped A–Z state when the profile changes
On a single-pane library with a work profile, focus the empty search field, scroll down the A–Z list, and switch between Personal and Work. The new remembered state survives that switch, but the existing LaunchedEffect(scrollKey) still resets only listState, which is no longer attached to the visible list. Consequently, the newly selected profile opens partway through its apps (or near the bottom if its list is shorter), instead of at the top as before; a profile becoming paused can likewise leave its status message offscreen. Give this state a reference that the profile/status reset effect can reset, or recreate it when those inputs change.
Useful? React with 👍 / 👎.
Small visual fixes from the walks through the beta 7 build on a Fold8 (3 Dec), for beta 7.
What changes
Sharp Home showed through the blur behind Notification Center and Control Center. The blurred picture of Home was drawn at 94% (
TopPanels.kt, thefadeIntarget), so 6% of live Home came through it: 3.5% after the default dim. Measured on a Fold8 by regressing the fine detail of a panel screenshot on the Home screenshot: 3.6 to 3.7% on the inside screen, 3.5 to 3.6% on the cover. It read most where a widget with large white text sits behind the panel, and the faint clock behind the panel kept the live time. The picture is now drawn atSHADE_PICTURE_ALPHA = 1f, one number for the fade and forshadeStandInAlpha's hand-over. The 94% came over from the backdrop used over another app when Panels over Home blur one picture of Home instead of blurring it live #486 moved panels on Home to one picture; the same line draws that backdrop, so it changes too. PNL-8 indocs/standards/panels.mdnow says "at full strength".A to Z on the cover opened part way down. On one list (the cover), a tap in the empty search field swapped the tiles for the A to Z list on the same
LazyListState, so the list opened scrolled by however far the tiles were. That list now has a state of its own, new each time it shows (tappedAzinAppLibrary.kt): it opens at its top, and the tiles keep their place for Cancel.The letter index ran under the keyboard. Home does not resize for the keyboard, and nothing in the App Library made room for it.
IndexedListnow ends where the keyboard will (keyboardCoverPxinLibraryLayout.kt, from the list's bottom in the window andWindowInsets.imeAnimationTarget), so the index fits its letters into what is left. It changes once when the keyboard starts to move, not once a frame. This covers the A to Z pane of the wide library too.Segmented controls highlighted from the chosen option to the end. In
IosSegmented(IosControls.kt) the thumb carried.width(segment).matchParentSize(), and matchParentSize also took the track's width, so the thumb was as wide as the track, offset to the chosen option and clipped. It only looked right with the last option chosen; with the first chosen the whole control was the thumb's gray. In since Large text: Market sidebar, folder names on Home, segmented control at 200% #515 (27 Oct), so 0.6.9 has it. matchParentSize now sizes a box around the thumb, and the thumb is one option wide again. 13 call sites.The App Library's first row was blurred at rest. The Downloading row was always in the list; with nothing downloading it had no height but was still the first item, so the list reported itself scrolled past it and
topEdgeBlurblurred the first tiles, and the first letter of A to Z on the cover. The row is now in the list only while something downloads (libraryLeadRowsinLibraryLayout.ktkeeps the letter index's count right).Backticks showed in Tips.
MarketText.inlinedid not know inline code, so a changelog line with a file name between backticks showed the backticks (the Import from Nova Launcher tip). Words between two backticks are now shown as typed, without the marks.Privacy & Permissions spacing. The banking apps note was inside the list's card with no side padding; it now sits under the card like the note above it. The Allowed label has a gap before it, so a long "Used by" line no longer runs into it.
Checked
The full local gate on this branch (
:app:testDebugUnitTest :market:testDebugUnitTest :app:lintDebug :market:lintDebug :app:assembleDebug), run again after each commit: app 3402 tests, 0 failures; market 334 tests, 0 failures; lint clean.ShadeStandInTest(the hand-over still ends at nothing, and the picture's strength is 1) andLibraryLayoutTest(the list ends where the keyboard starts).python tools/changelog.py check: ok.On a Fold8's inside screen (open flat, 3 Dec), the optimized build of
mainplus this branch and PRs 722, 724 and 725 (200ff98a), measured the same way as before: Notification Center over Home 0.0% of sharp Home (was 3.7%), Control Center over Home 0.0% (was 3.6%), Notification Center over another app (Calculator) 0.0%. No crash in the log.Same build, the App Library on the inside screen: with the keyboard up the A to Z pane ends at the keyboard and the index shows a reduced set (B, F, I, O, T, Y with dots between) above it; before, the letters ran under the keys and stopped at K. After Cancel the full index is back.
The register check on that build (
tools/check-dex-registers.py --variant fast): no new method over 256 registers.The cover screen, same build, phone shut: Notification Center 0.0% of sharp Home (was 3.5%), Control Center 0.0% (was 3.6%). With the tiles scrolled to their end, a tap in the search field opens A to Z at its top (B, Bixby), and the index sits above the keyboard (B, D, H, K, N, P, V, Y with dots between). No crash in the log.
New tests:
SegmentedLargeTextTest(the highlight is one option wide and sits behind the chosen one, for each of four options),LibraryLayoutTest(the index counts only the rows that are drawn),MarketTextTest(words between backticks).On the Fold8's cover, optimized build of
mainplus this branch and PRs 722, 724 and 725 (d9056610): the Style control on Icons & Side Bar highlights Default alone; the App Library's first row and the first letter chip of A to Z are sharp at rest; the Tips card reads "reads a .novabackup file"; the banking note sits under the Privacy list and "rotation lock" wraps clear of Allowed. No crash in the log. The register check on that build passes.Not checked