commit | e0c3d5dd26afea46d3059d30ece80420ab6b80c6 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Thu May 04 18:25:21 2017 -0700 |
committer | Winson Chung <winsonc@google.com> | Fri May 05 08:53:08 2017 -0700 |
tree | b38070e747ff75081dc1b90aaa481b606c2b381d | |
parent | 07672353a57ceae60b67562acef6aa3a83805cb6 [diff] |
Fixing regression in what is considered a restart attempt - CTS tests can start activities directly in the pinned stack with the CLEAR_TASK and NEW_TASK flags, so this check should only consider it a restart attempt if mReusedTask is set, as in setTaskFromIntentActivity(), otherwise the newly started activity will be triggered back into fullscreen. Bug: 37501224 Test: android.server.cts.ActivityManagerPinnedStackTests Change-Id: Ia37f9d77bfb85882e50271300234bfc6c2969f9a