Not resume TaskFragment behind translucent others

When an activity is resumed, it will call to pause the activity behind,
which can cause a loop of resume/pause if the top resume activity is
translucent.

Fix: 209356462
Test: atest WmTests:TaskTests
      #testResumeTask_doNotResumeTaskFragmentBehindTranslucent
Change-Id: Id9bf75c4e623fd382a5ca619ea742a1e86059ec2
4 files changed