aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-05-13 15:37:11 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-05-13 15:37:11 +0200
commit84e79040df5cae9f1c32e7a8055d8fd4b0dce531 (patch)
tree1a07b76e57cc17fb5ca358c41e7b2a63ba8e8a48 /src/eu/siacs/conversations/services
parent7e667319607aa5ed9fd2a2aa1573c40ffae3a613 (diff)
static method for providing content uri
Diffstat (limited to 'src/eu/siacs/conversations/services')
-rw-r--r--src/eu/siacs/conversations/services/ImageProvider.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/ImageProvider.java b/src/eu/siacs/conversations/services/ImageProvider.java
index c1bae661..7ca57032 100644
--- a/src/eu/siacs/conversations/services/ImageProvider.java
+++ b/src/eu/siacs/conversations/services/ImageProvider.java
@@ -93,5 +93,13 @@ public class ImageProvider extends ContentProvider {
public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) {
return 0;
}
+
+ public static Uri getContentUri(Message message) {
+ return Uri
+ .parse("content://eu.siacs.conversations.images/"
+ + message.getConversationUuid()
+ + "/"
+ + message.getUuid());
+ }
}