Repository navigation
feat(launcher): refresh drawer and eBoard on package changes - #65
Merged
Merged
Conversation
The drawer, home slot links and eBoard widgets kept stale state until the launcher was relaunched. Register a runtime receiver for the PACKAGE_ADDED/REMOVED/REPLACED system broadcasts: re-query the package manager and notify the drawer adapter, drop the widgets of an uninstalled provider, and fall unassigned home slots back to "App".
thypon
force-pushed
the
feat/package-change-refresh
branch
from
November 20, 2026 01:09
b615beb to
072d284
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The drawer, home slot links and eBoard widgets kept stale state until the launcher was relaunched. Now a runtime-registered
BroadcastReceiverfor thePACKAGE_ADDED/PACKAGE_REMOVED/PACKAGE_REPLACEDsystem broadcasts keeps everything truthful immediately:REMOVEDwithEXTRA_REPLACINGfollowed byREPLACED) refresh once, on the final broadcast, so the drawer does not flicker mid-update.DashboardActivity.removeWidgetsOfPackage), mirroring the existing manual-remove path.loadApps()no longer accumulates duplicate names inappNames, andchangeLayoutnotifies the adapter after reloading apps (the drawer view previously never refreshed on reopen).Why runtime registration
Manifest-declared
PACKAGE_*receivers are not delivered to apps targeting API 34; a runtimeregisterReceiverfor these system broadcasts is the supported pattern.Test plan
package_changes.feature(red → green), 5 scenarios: install / uninstall / update while the drawer is open, home-slot reset on uninstall, widget removal on uninstall../gradlew checkgreen locally: full Cucumber + unit suite, JaCoCo 80% coverage gate, lint.