summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2021-05-05 10:44:56 -0700
committerNikita Dubrovsky <dubrovsky@google.com>2021-05-06 11:50:52 -0700
commite480958234ae1b019bacf1b9cab85c34a23598ac (patch)
tree4605cae617c455f808fc0343e20724ede74af83a /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc4c14c9f9ffdd85017a3f28866c5f083b11e599a (diff)
Make drop consistent with paste for multiple text items in a ClipData
A ClipData can contain multiple items, for example: ``` ClipData clip = ClipData.newPlainText("label", "ONE"); clip.addItem(new ClipData.Item("TWO")); clip.addItem(new ClipData.Item("THREE")); ``` When a clip like this is pasted, the TextView impl inserts a newline between each item. When the same clip is inserted via drag-and-drop, no newlines are inserted. This change makes the behavior of drop and paste consistent by updating drop to match the paste behavior (since pasting has been around longer and is more common). Bug: 187428338 Test: atest CtsWidgetTestCases:TextViewReceiveContentTest Change-Id: I08f30e619b858a4586ab9b4ed287be28b218231e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions