OSDN Git Service

fixed handling of data URI schemes in Intent.toUri
authorChristopher Schuster <levjj@google.com>
Fri, 21 Jul 2017 21:53:52 +0000 (14:53 -0700)
committerChristopher Schuster <levjj@google.com>
Thu, 21 Sep 2017 15:20:16 +0000 (15:20 +0000)
commit42c3a6e6afd605e2d4a50d6a9f33e99666b72d4b
tree75d05547a22960bf22fa46a9ac40617e066c079c
parentc7d27845dfbbef80b9847ffa51efd753f0bde420
fixed handling of data URI schemes in Intent.toUri

Data URIs in intents can use schemes with digits and some special
characters (see RFC 2396 and 3986). This patch fixes how these
data URIs are handled by Intent.toUri to support these schemes.

Bug: 63930680
Test: run cts android.content.cts.IntentTest#testUris
Change-Id: I0dbb72325f59f372abba83be9e14c59d5665a053
Signed-off-by: Christopher Schuster <levjj@google.com>
core/java/android/content/Intent.java