summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorVladislav Kaznacheev <kaznacheev@google.com>2017-01-27 16:56:40 -0800
committerVladislav Kaznacheev <kaznacheev@google.com>2017-01-27 16:56:40 -0800
commite1f5e13c0fe8a436f53b402361e43728d31d8888 (patch)
tree93b8103827877872add2c739a6f8457c6a032cdf /tools/aapt2/java/JavaClassGenerator_test.cpp
parente244fd33b197c43c31b7010b5cb62ebb43743072 (diff)
Do not return cryptic strings from ClipData.Item.coerceToText
Currently, when ClipData contains an URI of "content", "file" or "android.resource" scheme, and the URI cannot be opened as a stream for some reason, then ClipData.Item.coerceToText (or coerceToHtmlText) return the URI's textual representation. This representation is not useful for a user at all. Returning an empty string instead. Bug: 28929820 Test: Drag a file from Files app to any text input, no URI should be inserted Change-Id: I21a23b673ef145a008427e9177403b5b1a41b898
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions