Prevent trimming recent tasks belonging in different stacks. am: 29dbc3cc47
am: 0aa4bb9e6b

Change-Id: I7224a8316f9d2a66196128f98c056de12e3b065c