Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sticker/src/main/java/com/xiaopo/flying/sticker/Sticker.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public abstract class Sticker {
private boolean isFlippedHorizontally;
private boolean isFlippedVertically;

public String tag = "";

public boolean isFlippedHorizontally() {
return isFlippedHorizontally;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ protected void handleCurrentMode(@NonNull MotionEvent event) {
if (constrained) {
constrainSticker(handlingSticker);
}

onStickerOperationListener.onStickerDragged(handlingSticker);
}
break;
case ActionMode.ZOOM_WITH_TWO_FINGER:
Expand Down Expand Up @@ -854,6 +856,9 @@ public void setIcons(@NonNull List<BitmapStickerIcon> icons) {
}

public interface OnStickerOperationListener {

void onStickerDragged(@NonNull Sticker sticker);

void onStickerAdded(@NonNull Sticker sticker);

void onStickerClicked(@NonNull Sticker sticker);
Expand Down