Fix issue with view-once toggle and face blurring.

This commit is contained in:
Greyson Parrelli 2020-06-03 13:14:19 -04:00
parent cd80a47c04
commit 40231ea45f
2 changed files with 4 additions and 1 deletions

View file

@ -201,7 +201,9 @@ public final class ImageEditorHud extends LinearLayout {
}
public void setBlurFacesToggleEnabled(boolean enabled) {
blurToggle.setOnCheckedChangeListener(null);
blurToggle.setChecked(enabled);
blurToggle.setOnCheckedChangeListener((button, value) -> eventListener.onBlurFacesToggled(value));
}
public void showBlurHudTooltip() {

View file

@ -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>