Skip to content
Commit b5d8f8b1 authored by wilsonshih's avatar wilsonshih
Browse files

Check that should resume activity directly while relaunch.

When running ActivityLifecycleSplitScreenTests test
testResumedWhenRecreatedFromInNonFocusedStack, we found that an activity
could have an extra paused lifecycle before resumed, this is because
one of the activity state in this stack is pausing, so the activity
behind it be relaunch to pause state.
To prevent another extra lifecycle, we can check that will the activity
goes to resume directly while relaunch.

Bug: 127741025
Test: run tests in android.server.am.lifecycle
Change-Id: I7f0520ec57250f0161741704d0f6ae79ced0139d
parent 66b1a264
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