Skip to content

Stop re-binding app suggestions on every Home and All Apps transition - #31

Merged
denson9874 merged 2 commits into
mainfrom
claude/project-thread-63818h
Sep 29, 2026
Merged

denson9874 merged 2 commits into
mainfrom
claude/project-thread-63818h

Conversation

@denson9874

Copy link
Copy Markdown
Owner

Requested by Daryl Denson · project thread

Before: every Home press and every All Apps open or close queued a model load and then rebuilt the hotseat suggestions, the All Apps suggestion row and the widget suggestions on the main thread, even when nothing had changed.

After: suggestions are only re-bound when they actually change, so those transitions no longer do that work.

How: removes refreshPredictionContainersFromModel() and its calls from LawnchairLauncher.onResume and onStateSetEnd. Prediction changes still reach the UI. LawnchairAppPredictor enqueues PredictionUpdateTask, which dispatches through ModelCallbacks.bindItemsUpdated → bindPredictedContainerInfo, and bindAll binds the containers on first load.

Not built locally (no Android SDK in the authoring environment). It is a pure deletion with unused imports removed. On device, check that suggestions still update after launching apps.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GvTcUjdGCFgGq1dgnoXW4W


Generated by Claude Code

LawnchairLauncher forced a model load and re-bound the hotseat, All Apps
and widget prediction containers in onResume and onStateSetEnd. The bind
targets rebuild their views unconditionally, so every Home press and
All Apps open/close did main-thread view churn with nothing changed.

Prediction changes already reach the UI: LawnchairAppPredictor enqueues
PredictionUpdateTask, which dispatches through bindItemsUpdated, and
bindAll binds the containers on load.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GvTcUjdGCFgGq1dgnoXW4W
@denson9874 denson9874 self-assigned this Sep 29, 2026
@denson9874
denson9874 marked this pull request as ready for review September 29, 2026 20:12
@denson9874
denson9874 merged commit 9094312 into main Sep 29, 2026
6 checks passed
denson9874 added a commit that referenced this pull request Sep 30, 2026
… fixes from public main (#29-#33)

Ports the android/ part of public main 938e9c6..73b6592 (PRs #29-#33):
- #29 BaseDepthController: skip redundant workspace blur clears and per-frame logging
- #30 stop reloading the whole model on every recreate (always-reload-icons default off)
- #31 stop re-binding prediction containers on every resume and state change
- #32 Pixel-style drawer search: instant results, calculator on by default, opaque
  focused pill, "Pixel Search (third-party)" label
- #33 locale change reloads the model; seeded provider results with session guard;
  Enter never opens a Play Store search while web suggestions load; calculator only
  answers real calculations (sqrt added)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants