[PATCH] Fix crash when no geo URI activities installed.

Sergey Starosek sergey.starosek at gmail.com
Mon Jun 3 03:13:58 PDT 2013


When there are no activities that support geo URI installed
on the device, Subsurface companion app will crash with
ActivityNotFoundException.

This patch checks with PackageManager for such situation and
disables "Show on map" menu item if necessary.

Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
---
 src/org/subsurface/DiveDetailActivity.java           | 19 +++++++++++++++----
 src/org/subsurface/SharePicturePositionActivity.java | 18 +++++++++++++++---
 src/org/subsurface/util/GpsUtil.java                 | 14 ++++++++++++++
 3 files changed, 44 insertions(+), 7 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-crash-when-no-geo-URI-activities-installed.patch
Type: text/x-patch
Size: 3908 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130603/d8439247/attachment.bin>


More information about the subsurface mailing list