diff options
author | yro <yro@google.com> | 2018-01-24 17:18:55 -0800 |
---|---|---|
committer | yro <yro@google.com> | 2018-01-25 20:27:46 -0800 |
commit | f7a3bcbeb7b89d35a916ded587bee6012061c1ff (patch) | |
tree | 9649af7d123a2d30ede5cf626550733309a1bd20 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 877553e360462c739a600f426263794a11838022 (diff) |
Prevent writeDataToDisk calls when switching from guest user to primary
user
Previsouly, we were only listening to ACTION_SHUTDOWN event, which is
triggered whenever 'user' on Android is changed. This will fire an
intent to write a file to disk and it is not intended. So we add
an additional check to see if the ACTION_SHUTDOWN is on foreground as
user switch fires ACTION_SHUTDOWN is NOT on foreground.
Bug: 72461610
Bug: 72441801
Test: manual testing
Change-Id: I05ea8f1b60b6644d1e6ccf232d6dcde39538666d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions