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

Support of restart process of non-top visible activity

Since the method restartTaskActivityProcessIfVisible is added,
restartProcessIfVisible may not only be called for the top
activity. Then if the current top finishes itself, there may be
a timing that the restarting state is changed by resuming next.
That will break the restart procedure when receiving onStop
completion of the target app.

By checking if the activity is scheduled to be restarted, the
restarting state can be recovered and continue the procedure.

Fix: 259042920
Test: SizeCompatTests#testRestartProcessIfVisible
Change-Id: Idb5833480e7f029c9da3c3ea6e4d9df911df5a0c
parent b0f1e19c
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