Loading
Don't restore from recent task if not launching
The restored task may not contain activities. If the operation is not to launch an activity (e.g. start activity from recents), it just produces an unused empty task into stack. That may also cause an unexpected state than originally intended (e.g. resize a finished task). Bug: 113363177 Test: RecentTasksTest#testNotRestoreRecentTaskApis Change-Id: Ibb8384c0364c421a5d8169f118ea521e7b5f33ae