diff options
| author | 2023-04-21 09:45:07 +0000 | |
|---|---|---|
| committer | 2023-05-18 22:15:01 +0000 | |
| commit | 3f4d138a91fb5c2b79e4284f351c1366770c9506 (patch) | |
| tree | 6e52a2a571fcdd947f91f406d85e7c1487646200 /libs/androidfw/StringPool.cpp | |
| parent | 67d1b351ea37c967b0632da1e0bbf7f5d1c06dcc (diff) | |
Truncate ShortcutInfo Id
Creating Conversation with a ShortcutId longer than 65_535 (max unsigned short), we did not save the conversation settings into the notification_policy.xml due to a restriction in FastDataOutput.
This put us to a state where the user changing the importance or turning off the notifications for the given conversation had no effect on notification behavior.
Fixes: 273729476
Test: atest ShortcutManagerTest2
Test: Create a test app which creates a Conversation with a long shortcutId. Go to the Conversation Settings and turn off Notifications. Post a new Notification to this Conversation and see if it is displayed.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8a5223fcd59e805da510c31c5f8462c5d01ec6d5)
Merged-In: I2617de6f9e8a7dbfd8fbeff589a7d592f00d87c5
Change-Id: I2617de6f9e8a7dbfd8fbeff589a7d592f00d87c5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions