diff options
author | Kodlee Yin <kodlee@google.com> | 2017-12-22 17:00:46 -0800 |
---|---|---|
committer | Kodlee Yin <kodlee@google.com> | 2018-01-05 10:37:29 -0800 |
commit | 14656423a630679dd7cf7334e50d0f52035d9faf (patch) | |
tree | 4798aea1ede8462632a1dcf8e318e3451ba167e3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7e3cae858450725d53088f0290ca8b80011e5b68 (diff) |
Fix compatibility in MessagingStyle.
The changes introduced to add MessagingStyle#isGroupConversation had
an implementation bug wherein an application that targets SDK < P
can set a non-null MessagingStyle#setConversationTitle which, in that
SDK version, would also denote it being a group conversation. A
listener targetting SDK >= P would be able able to capture this
notification, but incorrectly be given false when calling
MessagingStyle#isGroupConversation. This CL adds back legacy
functionality to #isGroupConversation by checking the
application's SDK version when they call #setConversationTitle
and interally set #isGroupConversation to true.
Test: runtest -x
core/tests/coretests/src/android/app/NotificationTest.java
Bug: 67717177
Change-Id: I2233e3d0b6d4fcf9823e50cd7aa31b76bbaddaed
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions