diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-10-05 21:22:58 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-10-05 21:22:58 +0200 |
commit | 28a47fcc2f67e2385a90237e9bdf2d360ee96f75 (patch) | |
tree | e1fe4ec5a3b5620d6c2c4b8b0399f7ca34b7d67c /src/main/java/de/pixart/messenger/persistance | |
parent | e7d59858ae3354ca3945496bd297351e71b3c9d2 (diff) |
fixed omemo shown as unavailable in 1:1 chats
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/persistance/FileBackend.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/FileBackend.java b/src/main/java/de/pixart/messenger/persistance/FileBackend.java index 135f6aef3..00bae3983 100644 --- a/src/main/java/de/pixart/messenger/persistance/FileBackend.java +++ b/src/main/java/de/pixart/messenger/persistance/FileBackend.java @@ -59,6 +59,8 @@ import de.pixart.messenger.xmpp.pep.Avatar; public class FileBackend { private static final SimpleDateFormat fileDateFormat = new SimpleDateFormat("yyyyMMdd_HHmmssSSS", Locale.US); + public static final String CONVERSATIONS_FILE_PROVIDER = "de.pixart.messenger.files"; + private XmppConnectionService mXmppConnectionService; public FileBackend(XmppConnectionService service) { @@ -465,7 +467,7 @@ public class FileBackend { File file = new File(getTakePhotoPath()+"IMG_" + fileDateFormat.format(new Date()) + ".jpg"); file.getParentFile().mkdirs(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - return FileProvider.getUriForFile(mXmppConnectionService,"de.pixart.messenger.files",file); + return FileProvider.getUriForFile(mXmppConnectionService, CONVERSATIONS_FILE_PROVIDER, file); } else { return Uri.fromFile(file); } |