commit | 090ac6f9db351fd4f8f7b9e0096cc6815fc8be9f | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Wed Oct 31 12:55:29 2018 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Thu Nov 01 21:23:29 2018 +0800 |
tree | 28ab0f493bd8d523e998c9fa7372bb598bead7a7 | |
parent | 906f76ae86b1c321db4d0427f1b0e787b97b1a8f [diff] |
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