aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-04-24 14:03:45 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-04-24 14:05:06 +0200
commit0cf889ca8762c9c134cee055005dcd85b8f075ba (patch)
tree796271ead200b88e8c791ccb63f05d9ac737ce24
parentd9c10378ffb456f2337739d1df316826913a2490 (diff)
downloadcgeo-0cf889ca8762c9c134cee055005dcd85b8f075ba.zip
cgeo-0cf889ca8762c9c134cee055005dcd85b8f075ba.tar.gz
cgeo-0cf889ca8762c9c134cee055005dcd85b8f075ba.tar.bz2
Add the ability to send local images to external viewer
This is needed for the implementation of #3438.
-rw-r--r--main/src/cgeo/geocaching/ui/ImagesList.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/ui/ImagesList.java b/main/src/cgeo/geocaching/ui/ImagesList.java
index 785be55..5727971 100644
--- a/main/src/cgeo/geocaching/ui/ImagesList.java
+++ b/main/src/cgeo/geocaching/ui/ImagesList.java
@@ -214,7 +214,7 @@ public class ImagesList {
private void viewImageInStandardApp(final Image img, final BitmapDrawable image) {
try {
final Intent intent = new Intent().setAction(android.content.Intent.ACTION_VIEW);
- final File file = LocalStorage.getStorageFile(geocode, img.getUrl(), true, true);
+ final File file = img.isLocalFile() ? img.localFile() : LocalStorage.getStorageFile(geocode, img.getUrl(), true, true);
if (file.exists()) {
intent.setDataAndType(Uri.fromFile(file), mimeTypeForUrl(img.getUrl()));
} else {