diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-08 11:49:23 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-08 11:49:23 +0200 |
commit | 98a80ffc61f1770214f5e7cff51ac94e16bfaa27 (patch) | |
tree | 8b9c1b9469bb12c15b8a139d839362e23422b644 /src/eu/siacs/conversations/services/ImageProvider.java | |
parent | 620d1df82e4240a863ab4762994a8f969f37ca79 (diff) |
save images to external storage instead of internal. this requires more permissions. fixed #150 fixed #177 fixed #333 - this might need some more polish though
Diffstat (limited to 'src/eu/siacs/conversations/services/ImageProvider.java')
-rw-r--r-- | src/eu/siacs/conversations/services/ImageProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/services/ImageProvider.java b/src/eu/siacs/conversations/services/ImageProvider.java index 80cfbd95..ff8eec0b 100644 --- a/src/eu/siacs/conversations/services/ImageProvider.java +++ b/src/eu/siacs/conversations/services/ImageProvider.java @@ -61,7 +61,7 @@ public class ImageProvider extends ContentProvider { message.setConversation(conversation); conversation.setAccount(account); - File file = fileBackend.getJingleFile(message); + File file = fileBackend.getJingleFileLegacy(message); pfd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); return pfd; @@ -110,7 +110,7 @@ public class ImageProvider extends ContentProvider { return 0; } - public static Uri getContentUri(Message message) { + public static Uri getProviderUri(Message message) { return Uri .parse("content://eu.siacs.conversations.images/" + message.getConversationUuid() |