TapTargetView icon indicating copy to clipboard operation
TapTargetView copied to clipboard

DismissAnimation appears to ignore tappedTarget from dismiss method

Open casolorz opened this issue 6 years ago • 0 comments

  • [x] I have verified the issue exists on the latest version
  • [x] I am able to reproduce it

Version used: 1.12.0

The dismiss() method looks like this:

public void dismiss(boolean tappedTarget) {
    isDismissing = true;
    pulseAnimation.cancel();
    expandAnimation.cancel();
    if (!visible || outerCircleCenter == null) {
      finishDismiss(tappedTarget);
      return;
    }
    if (tappedTarget) {
      dismissConfirmAnimation.start();
    } else {
      dismissAnimation.start();
    }
  }

The dismissAnimation used looks has this finishDismiss(true); which means when I get the event of the dismiss I'm told it was userInitiated even though I may have passed false as the tappedTarget on dismiss().

casolorz avatar Feb 20 '19 16:02 casolorz