Revert "Revert "DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activity brings another existed activity to front.""

This reverts commit d1dd7df0197a05e55d8ecc49d8a5d849e1704352.