commit | 05ff5d14872c434c6f82bdbcd6ec2aedbaad221d | [log] [tgz] |
---|---|---|
author | Chilun <chilunhuang@google.com> | Wed Jun 12 12:06:37 2019 +0800 |
committer | Chilun Huang <chilunhuang@google.com> | Fri Jun 14 03:07:11 2019 +0000 |
tree | 2ba7db5cfa8e5edef9206c021f80b131635c31ac | |
parent | e252d155b13e0f63ea4d2ff148bbb74aaf7db1da [diff] |
We should prevent starting home activity before setup In original call flow, we were using startActivityAsUser, which has the check, to start home activity. In previous CL, we replaced it by mActivityTaskManagerInternal.startHomeOnDisplay but missed the check. So we need to add it back now. Also add unit tests. Bug: 134689126 Test: atest PhoneWindowManagerTests Change-Id: Icc455d5596f8d9691d61c7b8dda82016720443b7