Skip to content

Fix Recents not updating correctly on the cover screen#13

Open
MechaYutori wants to merge 1 commit into
crispim1411:masterfrom
MechaYutori:master
Open

Fix Recents not updating correctly on the cover screen#13
MechaYutori wants to merge 1 commit into
crispim1411:masterfrom
MechaYutori:master

Conversation

@MechaYutori

@MechaYutori MechaYutori commented Jun 29, 2026

Copy link
Copy Markdown

This PR fixes two issues:

  1. Apps launched from the cover screen do not appear in Recents on the cover screen until Recents is opened on the inner screen.
  2. Recommended apps in Recents on the inner screen do not appear immediately after opening Recents on the cover screen.

Root cause:

  • The first issue appears to be caused by Recents being brought to the foreground in an unintended way instead of being recreated, preventing the app list from being refreshed.
  • The second issue was caused by multiple Recents instances existing simultaneously.

Changes:

  • Replaced FLAG_ACTIVITY_REORDER_TO_FRONT with FLAG_ACTIVITY_CLEAR_TASK to recreate Recents and refresh the app list correctly.
  • Added FLAG_ACTIVITY_NO_HISTORY to prevent the cover-screen Recents activity from remaining in the back stack.

Tested on:

  • Galaxy Z Flip7
  • One UI 8.5

whazami added a commit to whazami/RecentApps that referenced this pull request Jul 5, 2026
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.

1 participant