Reducing unnecessary activity pause if activity can turn on screen

The activity lifecycle is RESUMED->PAUSED->RESUMED while starting
a turn-screen-on activity on a multiple display scenario because
the activity on the secondary display cannot be resumed while
the display is off and therefore put other tasks to sleep.

Bug: 298598671
Test: atest ActivityVisibilityTests
Change-Id: I98c9fce1aa4a4cdf58e15de40c2d4808d09fe976
2 files changed