Skip to content

Commit

Permalink
Prevent highlighter opacity affecting blur tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal committed Jun 10, 2020
1 parent 2334c26 commit 53a2a5d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -250,6 +250,7 @@ private void setMode(@NonNull Mode mode, boolean notify) {
case NONE: presentModeNone(); break;
case CROP: presentModeCrop(); break;
case DRAW: presentModeDraw(); break;
case BLUR: presentModeBlur(); break;
case HIGHLIGHT: presentModeHighlight(); break;
case TEXT: presentModeText(); break;
}
Expand Down Expand Up @@ -286,6 +287,11 @@ private void presentModeDraw() {
colorPicker.setActiveColor(Color.RED);
}

private void presentModeBlur() {
colorPicker.setOnColorChangeListener(standardOnColorChangeListener);
colorPicker.setActiveColor(Color.BLACK);
}

private void presentModeHighlight() {
colorPicker.setOnColorChangeListener(highlightOnColorChangeListener);
colorPicker.setActiveColor(Color.YELLOW);
Expand Down

0 comments on commit 53a2a5d

Please sign in to comment.