Skip to content

Change order of removeView and onDismiss call#177

Merged
xiphirx merged 1 commit intoKeepSafe:masterfrom
marcorei:user-initiated
Jul 16, 2017
Merged

Change order of removeView and onDismiss call#177
xiphirx merged 1 commit intoKeepSafe:masterfrom
marcorei:user-initiated

Conversation

@marcorei
Copy link
Copy Markdown
Contributor

The value userInitiated of TapTargetView.Listener.onTargetDismissed(TapTargetView, boolean) was always false when I tried TapTargetView in my project.

Looking at the code it seems like it is supposed to be always true except when the removal of the view is not triggered by the end of an animation (which was triggered by a user interaction).

Changing the order of the onDismiss() prevents the removal of the view from triggering onDismiss(false).

@xiphirx xiphirx merged commit 40de141 into KeepSafe:master Jul 16, 2017
@xiphirx
Copy link
Copy Markdown
Collaborator

xiphirx commented Jul 16, 2017

Nice catch! Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants