App list: fixes from the pre-release audit

- Scrub from home works right after the launcher starts. The home edge
  band was measured from the alphabet's own view, which has no size
  until the app list has been shown once (emulator: it now opens at a
  letter straight after an install). It no longer takes over per-icon
  swipe gestures on icons at the edge.
- Holding to scrub no longer undoes "Remember position", and the
  remembered place is saved and restored in the same unit.
- Notification previews: no text Android itself would hide (secret
  notifications, and work-profile ones the ranking redacts); right after
  changes made while the launcher was in the background; also for rows
  held in the list's view cache; only redrawn when the line changed;
  read by TalkBack; set through BubbleTextView's own label handling.
- Light theme: search results, the empty state and the search field are
  readable on the always-dark backdrop (emulator).
- Hide app is not offered for Private Space apps, where it could not
  work, and Private Space adds no blank stop to the alphabet.
- Canvas-drawn letters follow Android's Bold text setting.
- TalkBack list positions ignore the letter headers; the one-column list
  stays one column on foldables in two-panel mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TMCandClaude Opus 5.5 committed 2026-11-14 18:50:49 +01:00
1 parent f79b503ffb
commit 4efe37ef9c
18 files changed
+525 -97

No files matched your search

@@ -141,7 +141,8 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch
if (threeButtons && !mLauncher.isInState(NORMAL)) {
return false;
}
// The buttons own the navigation bar, so a touch never counts as starting on it.
// Flexera Launcher: the buttons own the navigation bar, so a touch never counts as
// starting on it.
mDidTouchStartInNavBar = !threeButtons && (ev.getEdgeFlags() & EDGE_NAV_BAR) != 0;
boolean isOneHandedModeActive = (SystemUiProxy.INSTANCE.get(mLauncher)
.getLastSystemUiStateFlags() & SYSUI_STATE_ONE_HANDED_ACTIVE) != 0;
@@ -321,8 +322,6 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch
}
mFlexeraScrubStarted = true;
mFlexeraScrubStartTime = SystemClock.uptimeMillis();
app.flexera.drawer.FlexeraDrawer.scrubFromSwipe(
mLauncher.getAppsView(), mLauncher.getDragLayer(), mFlexeraLastX, mFlexeraLastY);
// Play the swipe's own animation to its end, as lifting the finger would, only faster.
// Going through the state manager instead would take its full 600 ms opening time.
@@ -338,6 +337,12 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch
Utilities.boundToRange(mCurrentAnimation.getProgressFraction(), 0f, 1f), 1f);
anim.setDuration(FLEXERA_HOLD_OPEN_MS).setInterpolator(DECELERATE);
mCurrentAnimation.dispatchOnStart();
// The alphabet takes the finger only after the drawer's start has gone out again, as in
// scrub from home. With Remember position on, the start notes where the list stands,
// which is where a hold let go at once sends it back to, so the note is taken before
// the scrub's first jump.
app.flexera.drawer.FlexeraDrawer.scrubFromSwipe(
mLauncher.getAppsView(), mLauncher.getDragLayer(), mFlexeraLastX, mFlexeraLastY);
anim.start();
VibratorWrapper.INSTANCE.get(mLauncher).vibrate(OVERVIEW_HAPTIC);
}