From ba63727f50c192e63e171bedca92d7003981800c Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 5 Aug 2014 22:58:46 +0200 Subject: fetch missing avatars from server --- src/eu/siacs/conversations/persistance/FileBackend.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/eu/siacs/conversations/persistance') diff --git a/src/eu/siacs/conversations/persistance/FileBackend.java b/src/eu/siacs/conversations/persistance/FileBackend.java index 4014cf60..c371e039 100644 --- a/src/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/eu/siacs/conversations/persistance/FileBackend.java @@ -248,6 +248,11 @@ public class FileBackend { } } + public boolean isAvatarCached(Avatar avatar) { + File file = new File(getAvatarPath(context, avatar.getFilename())); + return file.exists(); + } + public void save(Avatar avatar) { File file = new File(getAvatarPath(context, avatar.getFilename())); file.getParentFile().mkdirs(); -- cgit v1.2.3