commit | fc1b9998ca8a9fceba47d67fd9ea9b45705b53e0 | [log] [tgz] |
---|---|---|
author | AndrĂ¡s Kurucz <kurucz@google.com> | Fri Apr 21 09:45:07 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu May 11 18:40:29 2023 +0000 |
tree | 6c9526cd89cf05d75df23d4b2f78568ef856a539 | |
parent | a33159e8cb297b9eee6fa5c63c0e343d05fad622 [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:d31fe58376000d1337a1c57bdac2c018b670b2ec) Merged-In: I2617de6f9e8a7dbfd8fbeff589a7d592f00d87c5 Change-Id: I2617de6f9e8a7dbfd8fbeff589a7d592f00d87c5