Revert "Always hide protected apps from the recent tasks list"
This doesn't always have the desired effect. For example, CMParts is now a protected component manager and can start protected activities without requiring any authentication. This change seems to undo the effect of FLAG_ACTIVITY_NEW_TASK that CMParts sets when it starts a protected component, therefore, even though no new entry is added to the recents list, the protected component replaces the entry for CMParts. This is equivalent to adding an entry for the app to the recents list. Forcing FLAG_ACTIVITY_NEW_TASK appears to have desired effect (no entry for the protected app in recents), but this change would be too intrusive and it could potentially break something else. Setting the proper flags from the protected component manager is probably a safer option, even though it would not be able to stop apps from creating new entries in recents themselves. This reverts commit 15360dfe. Change-Id: Ie54cb6c6ddc1d1156076bce4b7ce9a5811df1460
Loading
Please register or sign in to comment