mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-30 13:41:47 +01:00
Fix trash can not appearing when editing group photo.
This commit is contained in:
committed by
Cody Henthorne
parent
0dd51856d3
commit
f6bac2f476
@@ -183,7 +183,7 @@ final class EditorElementHierarchy {
|
|||||||
cropEditorElement.addElement(createThumbs(cropEditorElement, renderCenterThumbs));
|
cropEditorElement.addElement(createThumbs(cropEditorElement, renderCenterThumbs));
|
||||||
|
|
||||||
if (cropStyle == CropStyle.CIRCLE) {
|
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)
|
circle.getFlags().setSelectable(false)
|
||||||
.persist();
|
.persist();
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public final class EditorModel implements Parcelable, RendererContext.Ready {
|
|||||||
public static final int Z_FADE = 1;
|
public static final int Z_FADE = 1;
|
||||||
public static final int Z_TEXT = 2;
|
public static final int Z_TEXT = 2;
|
||||||
public static final int Z_TRASH = 3;
|
public static final int Z_TRASH = 3;
|
||||||
|
public static final int Z_CIRCLE = 4;
|
||||||
|
|
||||||
private static final Runnable NULL_RUNNABLE = () -> {
|
private static final Runnable NULL_RUNNABLE = () -> {
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user