commit | 10101f3bc32655dbc176e261923cb5ee15ad153f | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Tue Jun 29 10:13:08 2021 -0700 |
committer | Yabin Huang <yabinh@google.com> | Tue Jun 29 10:13:08 2021 -0700 |
tree | b2d2cac8f37806c53b0a2e8c49aed37dc78fd14e | |
parent | 4878af06abd0249657fd348a74bfe997640d2019 [diff] |
Specify FLAG_IMMUTABLE when creating PendingIntent Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. So this CL uses FLAG_IMMUTABLE to create the PendingIntent because the flag is recommended in most cases. Bug: 192103710 Test: manual Change-Id: Ic5396ca753bfdf3d1e616511cd64490b22f58e59
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.