Skip to content

fix: deduplicate hidden apps list to prevent duplicate entries#701

Open
mvanhorn wants to merge 172 commits into
tanujnotes:mainfrom
mvanhorn:fix/467-hidden-apps-duplicate
Open

fix: deduplicate hidden apps list to prevent duplicate entries#701
mvanhorn wants to merge 172 commits into
tanujnotes:mainfrom
mvanhorn:fix/467-hidden-apps-duplicate

Conversation

@mvanhorn
Copy link
Copy Markdown

Summary

When a previously hidden app is reinstalled from Play Store, it can appear twice in the Hidden Apps list. This happens because multiple launchable activities for the same package each get added independently.

Fix

Added a seenPackages set in getAppsList() (Utils.kt) that tracks which package+profile combinations have already been added. Set.add() returns false for duplicates, so the second activity from the same package is skipped.

The fix applies to both hidden and regular app lists for consistency.

Changes

  • app/src/main/java/app/olauncher/helper/Utils.kt: Added seenPackages set and dedup check via seenPackages.add(packageKey) before adding to appList

Fixes #467

This contribution was developed with AI assistance (Claude Code).

omeritzics and others added 30 commits August 30, 2023 16:01
Race condition between filtering and refreshing apps tanujnotes#417
Adds a (libs.versions.toml) file to centralize dependency management. This improves dependency consistency, reduces maintenance overhead, and simplifies version updates across modules.
…tion

Various fixes in the Hungarian translation
…ions-catalogue

Introduce version catalog for dependency management
tanujnotes and others added 30 commits February 15, 2026 11:35
Fix fatal crash when renaming apps outside the 'main' user profile
When an app has multiple launchable activities or gets reinstalled after
being hidden, the hidden apps list could show duplicates. Track seen
package+profile combinations to ensure each package appears at most once.
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.