commit | 8dba6696ae0a5fb34ff39d19a57f4dc0f04bb408 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Tue Dec 03 16:21:03 2019 -0800 |
committer | Jim Kaye <jameskaye@google.com> | Wed Dec 04 13:26:54 2019 -0800 |
tree | f0acabf8f37c764ab7f1edbbb647b9979bed670d | |
parent | d22f1d607f28bda22adcb97924d80c1c63dbf37a [diff] |
Fix crash in CarPowerManagementService ag/9718627 moved the logic for when we call getInitialUser(). This was causing us to try to get the initial user before the first user was created on initial boot. This CL updates the logic to only try to get the initial user when running the resume flow. Bug: 144802294 Test: Flash and check logcat for crash. 100% repro before change, 0% repro after change. Change-Id: If500c1ccdb9655c46edb1745b007186757db0f2b (cherry picked from qt-qpr1-dev commit 6c4dbb6986d81bc645a22c330cb3fda98710dfc8)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.