OSDN Git Service

Fix to crash when clicking text link without view activity
authorDaniel 2 Olofsson <daniel2.olofsson@sonymobile.com>
Tue, 13 Nov 2012 14:16:23 +0000 (15:16 +0100)
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>
Wed, 10 Dec 2014 00:40:53 +0000 (00:40 +0000)
commit7bd9b7f73d2acead67a2bd5995bd56140ae3c4df
tree46bf81cf099f15a4c8164dd530d4f5ca6eeedaac
parentf71f5e8957aa2495a708ea1c8ca9e19d9e1f0003
Fix to crash when clicking text link without view activity

A generated quick link to telephone number gets clicked and
crashes if corresponding activity doesn't exist in device.
It attempts to open up an activity to view content which will
in turn generate an uncaught ActivityNotFoundException.
Solved by catching exception when launching activity for the
specified content.

Change-Id: I47364519f1eceb5b978b29382107deae1891c7da
core/java/android/text/style/URLSpan.java