Skip to content

Watcher: Show distinct icon for removed apps#325

Merged
d4rken merged 2 commits into
mainfrom
feat/watcher-removed-app-icon
Mar 17, 2026
Merged

Watcher: Show distinct icon for removed apps#325
d4rken merged 2 commits into
mainfrom
feat/watcher-removed-app-icon

Conversation

@d4rken

@d4rken d4rken commented Mar 17, 2026

Copy link
Copy Markdown
Member

What changed

Removed apps in the Watcher now show a "delete forever" icon instead of the generic Android placeholder. This makes it immediately clear which entries are for apps that have been uninstalled.

Technical Context

  • When an app is uninstalled, PackageManager can't resolve its icon, so Coil's AppIconFetcher falls back to a transparent drawable, which renders as the generic Android icon placeholder
  • Rather than caching icons to disk, this uses a simple conditional: if the event type is REMOVED, show Icons.Filled.DeleteForever directly, bypassing the Coil fetch entirely
  • Applied in both the dashboard list items and the report detail header

Use DeleteForever icon for REMOVED events instead of attempting to load the app icon from PackageManager (which returns a generic placeholder for uninstalled apps).
@d4rken d4rken added the enhancement New feature or request label Mar 17, 2026
@d4rken d4rken marked this pull request as ready for review March 17, 2026 17:32
@d4rken d4rken merged commit e7cd08c into main Mar 17, 2026
9 checks passed
@d4rken d4rken deleted the feat/watcher-removed-app-icon branch March 17, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant