cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ZoLive
New member
Status: New idea

Problem

Thunderbird for Android must keep running in the background to maintain IMAP IDLE/push connections. On many devices, the usual workaround is to keep the app in the recent apps (overview) screen and lock its card so it can't be removed by the "Clear all" button. This has two downsides:

  • It leaves a permanent Thunderbird card in the overview, which adds clutter.
  • Push is easy to kill by accident: swiping the app away from recents terminates the IDLE connections (see #8751 ).

Proposed solution

Add an opt-in setting, for example under Settings → General settings → Privacy, called "Hide from recent apps" (default: off).

When enabled, Thunderbird's task is excluded from the recent apps screen via android:excludeFromRecents / FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS. This only removes the task card from the overview. It does not stop the app. With push enabled, the existing PushService foreground service (behind the ongoing "Waiting for new emails" notification) keeps running and keeps the IMAP IDLE connections alive. The app doesn't need to be in recents to receive mail, and tapping the launcher icon or a notification still opens it normally.

With no card in recents, there is nothing to swipe away by accident, which is what users who rely on push/IDLE want. Users who prefer the current behavior can leave the option off.

Not the same as screenshot blocking

#5938 requests FLAG_SECURE to block screenshots. That only blanks the preview. The task card stays in recents (the issue itself notes the app remains visible in the list of open apps). #6560 was closed as a duplicate of #5938, but its "hide content in the multitasking view" use case is only partly addressed by that approach.

This request is about removing the card entirely and should not block screenshots.

Trade-offs / notes

  • Opt-in and clearly labelled.
  • The foreground service and its ongoing notification are unchanged, so push stays controllable.
  • With the card hidden, the app can't be swiped away from recents. Users who want that can turn the setting off.
  • Hiding is best-effort: some OEM task managers or "active apps" lists may still show the process, and battery optimizations can still kill it.
  • Toggling at runtime may require recreating the task (or using an activity-alias); this is an implementation detail.
  • Activity.setRecentsScreenshotEnabled(false) (Android 13+) only suppresses the thumbnail; the card remains.

Alternatives considered

  • Keep the app in recents and lock the card: the current workaround, and the source of the clutter.
  • FLAG_SECURE: hides the preview, not the card.
  • "Just don't swipe it away": doesn't fix the clutter and is easy to get wrong.

Additional context

Several Android apps already offer a comparable "hide from recents" option (e.g. Clash Meta, AccessibilityManager). This is a self-contained setting that would make the push/IDLE workflow much cleaner.

I'm happy to test a build or provide more details.