Fix trash can not appearing when editing group photo.

This commit is contained in:
Clark Chen
2023-05-30 17:15:00 -04:00
committed by Cody Henthorne
parent 0dd51856d3
commit f6bac2f476
2 changed files with 2 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ final class EditorElementHierarchy {
cropEditorElement.addElement(createThumbs(cropEditorElement, renderCenterThumbs));
if (cropStyle == CropStyle.CIRCLE) {
EditorElement circle = new EditorElement(new OvalGuideRenderer(R.color.crop_circle_guide_color));
EditorElement circle = new EditorElement(new OvalGuideRenderer(R.color.crop_circle_guide_color), EditorModel.Z_CIRCLE);
circle.getFlags().setSelectable(false)
.persist();

View File

@@ -43,6 +43,7 @@ public final class EditorModel implements Parcelable, RendererContext.Ready {
public static final int Z_FADE = 1;
public static final int Z_TEXT = 2;
public static final int Z_TRASH = 3;
public static final int Z_CIRCLE = 4;
private static final Runnable NULL_RUNNABLE = () -> {
};