Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0342e135 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix #1034 Canvas: trying to draw too large (Huge images)

parent 0bc52c67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        apply plugin: 'maven'
@@ -20,5 +19,6 @@ allprojects {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ android {
}

ext {
    markwonVersion = "4.6.1"
    markwonVersion = "4.6.2-SNAPSHOT"
    rxMarkdownVersion = "0.1.3"
}

+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import io.noties.markwon.SoftBreakAddsNewLinePlugin;
import io.noties.markwon.ext.strikethrough.StrikethroughPlugin;
import io.noties.markwon.ext.tables.TablePlugin;
import io.noties.markwon.ext.tasklist.TaskListPlugin;
import io.noties.markwon.image.DefaultDownScalingMediaDecoder;
import io.noties.markwon.image.ImagesPlugin;
import io.noties.markwon.inlineparser.MarkwonInlineParserPlugin;
import io.noties.markwon.linkify.LinkifyPlugin;
@@ -84,7 +85,7 @@ public class MarkwonMarkdownViewer extends AppCompatTextView implements Markdown
                .usePlugin(TaskListPlugin.create(context))
                .usePlugin(LinkifyPlugin.create(true))
                .usePlugin(LinkClickInterceptorPlugin.create())
                .usePlugin(ImagesPlugin.create())
                .usePlugin(ImagesPlugin.create(plugin -> plugin.defaultMediaDecoder(DefaultDownScalingMediaDecoder.create(context.getResources().getDisplayMetrics().widthPixels, 0))))
                .usePlugin(SoftBreakAddsNewLinePlugin.create())
                .usePlugin(SyntaxHighlightPlugin.create(prism4j, prism4jTheme))
                .usePlugin(new ToggleableTaskListPlugin((toggledCheckboxPosition, newCheckedState) -> {