diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-04-24 14:03:45 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-04-24 14:05:06 +0200 |
| commit | 0cf889ca8762c9c134cee055005dcd85b8f075ba (patch) | |
| tree | 796271ead200b88e8c791ccb63f05d9ac737ce24 /main/src/cgeo/geocaching/ui/ImagesList.java | |
| parent | d9c10378ffb456f2337739d1df316826913a2490 (diff) | |
| download | cgeo-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.
Diffstat (limited to 'main/src/cgeo/geocaching/ui/ImagesList.java')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/ImagesList.java | 2 |
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 { |
