Skip to content
Commit b26efb47 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Avoid ignoring turning on screen requested by slow activity

If an activity is slow and has set the flags turn-screen-on and
show-when-locked, once it triggers pause timeout, the activity
will be stopped, so the relayout invisible won't apply the flags.

Then it relies on an additional transaction item to be visible
again to request relayout with visible state.

Since commit b9faa03b, it no longer send a visibility change item
(makeClientVisible) for a visible activity, but attempts to resume
the activity (makeActiveIfNeeded). That falls to the condition
that doesn't check if the activity can turn on screen and just skip
the resume, so the activity won't have relayout visible to apply
the flags.

Bug: 148145248
Test: atest ActivityVisibilityTests#testTurnScreenOnActivity_slowLaunch
Change-Id: I0220451e61dcc1e18fbea505e02a2c5dca6a96cb
parent 33cf9d09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment