~singpolyma/cheogram-android

d559645fa4167bba00dc0f8d8b682535e94a1800 — Stephen Paul Weber 1 year, 4 months ago 53c6f5c
Blurhash only for fallback
1 files changed, 2 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/persistance/FileBackend.java
M src/main/java/eu/siacs/conversations/persistance/FileBackend.java => src/main/java/eu/siacs/conversations/persistance/FileBackend.java +2 -0
@@ 1061,6 1061,8 @@ public class FileBackend {
                        if (uri.getScheme().equals("data")) {
                            if (android.os.Build.VERSION.SDK_INT < 28) continue;
                            String[] parts = uri.getSchemeSpecificPart().split(",", 2);
                            if (parts[0].equals("image/blurhash")) continue; // blurhash only for fallback

                            byte[] data;
                            if (Arrays.asList(parts[0].split(";")).contains("base64")) {
                                data = Base64.decode(parts[1], 0);