Skip to content
Commit 9cbadee7 authored by Louis Chang's avatar Louis Chang
Browse files

Pausing the resumed activity when making it invisible

A resumed activity was added to stopping activity lists while
making it invisible without having state changes. So, the
activity won't be resumed if it becomes visible again because
the activity is already in the resumed state.

mSetToSleep was used in 9b8ece20, which wasn't a reliable way to
determine if the activity is resuming because it gets updates until
set to sleep. Now we use Task#mInResumeTopActivity instead.

Bug: 160435184
Test: atest ActivityRecordTests
Change-Id: I3509ba75e3f2d87c863d52c0fb07d69cbfe41764
parent 4a11c440
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