Skip to content

Commit

Permalink
Fix issue with view-once toggle and face blurring.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jun 3, 2020
1 parent cd80a47 commit 40231ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -201,7 +201,9 @@ public void setActiveColor(int color) {
}

public void setBlurFacesToggleEnabled(boolean enabled) {
blurToggle.setOnCheckedChangeListener(null);
blurToggle.setChecked(enabled);
blurToggle.setOnCheckedChangeListener((button, value) -> eventListener.onBlurFacesToggled(value));
}

public void showBlurHudTooltip() {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/image_editor_hud.xml
Expand Up @@ -199,7 +199,8 @@
android:id="@+id/scribble_blur_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false" />
android:checked="false"
android:saveEnabled="false"/>
</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down

0 comments on commit 40231ea

Please sign in to comment.