fix blurring of images after using highlighting pencil (#1467)

This commit is contained in:
cyberta
2020-07-01 17:30:51 +02:00
committed by link2xt
parent 3c825ff955
commit 8d0c0cb4c6
@@ -185,6 +185,7 @@ public final class ImageEditorHud extends LinearLayout {
case DRAW: presentModeDraw(); break;
case HIGHLIGHT: presentModeHighlight(); break;
case TEXT: presentModeText(); break;
case BLUR: presentModeBlur(); break;
}
if (notify) {
@@ -206,6 +207,11 @@ public final class ImageEditorHud extends LinearLayout {
(button != undoButton || undoAvailable);
}
private void presentModeBlur() {
colorPicker.setOnColorChangeListener(standardOnColorChangeListener);
colorPicker.setActiveColor(Color.WHITE);
}
private void presentModeDraw() {
colorPicker.setOnColorChangeListener(standardOnColorChangeListener);
colorPicker.setActiveColor(Color.RED);