~singpolyma/cheogram-android

986bf4e8652cc917360a60462903c6c081228d00 — Stephen Paul Weber 8 months ago f9a3194
Fix for empty SVG
1 files changed, 4 insertions(+), 2 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 +4 -2
@@ 2159,7 2159,8 @@ public class FileBackend {
            svg.renderToCanvas(canvas, target);

            return new SVGDrawable(output);
        } catch (final IOException | SVGParseException e) {
        } catch (final IOException | SVGParseException | IllegalArgumentException e) {
            Log.w(Config.LOGTAG, "Could not parse SVG: " + e);
            return null;
        }
    }


@@ 2180,7 2181,8 @@ public class FileBackend {
            svg.renderToCanvas(canvas);

            return new SVGDrawable(output);
        } catch (final IOException | SVGParseException e) {
        } catch (final IOException | SVGParseException | IllegalArgumentException e) {
            Log.w(Config.LOGTAG, "Could not parse SVG: " + e);
            return null;
        }
    }