OSDN Git Service

New Linkify.addLinks function with set of known schemes
authorSiyamed Sinir <siyamed@google.com>
Thu, 3 Mar 2016 00:02:38 +0000 (16:02 -0800)
committerSiyamed Sinir <siyamed@google.com>
Mon, 21 Mar 2016 17:27:31 +0000 (10:27 -0700)
commit6eccafd3394f977d44c329dc75eb12739a818f4b
tree40dda13a873073b921bbb5c0c10ad40caa461167
parent1981e602ad97e3a21bc987dbeb0625e87a58ff8d
New Linkify.addLinks function with set of known schemes

A new addLinks function is added that accepts a default scheme and a
set of known schemes. Default scheme is applied whenever the link found
does not start with one of the given known schemes.

Moreover, previously JavaDoc for addLinks functions with a single scheme
parameter described that the scheme attribute will be prepended to the
links that do not have 'a' scheme. The code actually checks if the link
starts with the given scheme and prepends if not. JavaDoc updated
accordingly.

Bug: 26985901
Change-Id: I94ea81dcf83ba7a6b6cd47c10fe8fb277964eb15
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/text/util/Linkify.java