commit | e8902452eaf2035ff2f61379ac64f2c729e115d1 | [log] [tgz] |
---|---|---|
author | Louis Chang <louischang@google.com> | Mon Jun 10 10:49:28 2019 +0800 |
committer | Louis Chang <louischang@google.com> | Wed Jun 12 04:04:18 2019 +0000 |
tree | 32b4a82c942060bb2f09dac5b2bd46a5f2f4c58d | |
parent | e252d155b13e0f63ea4d2ff148bbb74aaf7db1da [diff] |
Fix empty stacks leaked after blocking background activity launches. Background activity starts were blocked while stacks were created and leaked. Remove the stack if the activity failed to launch and no activities left in the stack. Also avoid creating new stack for the blocked background activity which is unnecessary. Bug: 134016361 Test: atest BackgroundActivityLaunchTest Change-Id: Ifa04a9062cb771929a9614cc164fd64b3f60edf1