Loading core/java/android/text/util/Linkify.java +30 −23 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ public class Linkify { String address; int base = 0; try { while ((address = WebView.findAddress(string)) != null) { int start = string.indexOf(address); Loading Loading @@ -492,6 +493,12 @@ public class Linkify { spec.url = "geo:0,0?q=" + encodedAddress; links.add(spec); } } catch (UnsupportedOperationException e) { // findAddress may fail with an unsupported exception on platforms without a WebView. // In this case, we will not append anything to the links variable: it would have died // in WebView.findAddress. return; } } private static final void pruneOverlaps(ArrayList<LinkSpec> links) { Loading Loading
core/java/android/text/util/Linkify.java +30 −23 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ public class Linkify { String address; int base = 0; try { while ((address = WebView.findAddress(string)) != null) { int start = string.indexOf(address); Loading Loading @@ -492,6 +493,12 @@ public class Linkify { spec.url = "geo:0,0?q=" + encodedAddress; links.add(spec); } } catch (UnsupportedOperationException e) { // findAddress may fail with an unsupported exception on platforms without a WebView. // In this case, we will not append anything to the links variable: it would have died // in WebView.findAddress. return; } } private static final void pruneOverlaps(ArrayList<LinkSpec> links) { Loading