use of com.aviary.android.feather.library.graphics.drawable.FeatherDrawable in project mobile-android by photo.
the class StickersPanel method onClearCurrent.
/**
* Removes the current active sticker.
*
* @param hv
* - the {@link DrawableHighlightView} of the active sticker
* @param removed
* - current sticker is removed
*/
private void onClearCurrent(DrawableHighlightView hv, boolean removed) {
mLogger.info("onClearCurrent. hv=" + hv + ", removed=" + removed);
if (mCurrentFilter != null) {
mCurrentFilter = null;
}
if (null != hv) {
FeatherDrawable content = hv.getContent();
if (removed) {
if (content instanceof StickerDrawable) {
String name = ((StickerDrawable) content).getStickerName();
String packname = ((StickerDrawable) content).getPackLabel();
Tracker.recordTag(name + ": Cancelled");
Tracker.recordTag(packname + ": Cancelled");
}
}
}
hv.setOnDeleteClickListener(null);
((ImageViewDrawableOverlay) mImageView).removeHightlightView(hv);
((ImageViewDrawableOverlay) mImageView).invalidate();
}
Aggregations