Skip to content

Commit

Permalink
Merge pull request #13 from droidekas/master
Browse files Browse the repository at this point in the history
backpress dismiss is independent of on touch listener
  • Loading branch information
29jitender authored Aug 11, 2016
2 parents add3ec5 + 6a6d58b commit 1b5e7c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,6 @@ public void onAnimationStart(Animation animation) {
@Override
public void onAnimationEnd(Animation animation) {
dismissOnTouch = true;
dismissOnBackPress = true;
enableDismissOnBackPress();
}

@Override
Expand Down Expand Up @@ -1027,7 +1025,6 @@ public Builder lineAnimDuration(long duration) {
public Builder enableDismissAfterShown(boolean enable) {
if (enable) {
spotlightView.setDismissOnTouch(false);
spotlightView.setDismissOnBackPress(false);
}
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/spotlight/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void showIntro(View view, String usageId) {
.lineAndArcColor(Color.parseColor("#eb273f"))
.dismissOnTouch(true)
.dismissOnBackPress(true)
//.enableDismissAfterShown(true)
.enableDismissAfterShown(true)
.usageId(usageId) //UNIQUE ID
.show();
}
Expand Down

0 comments on commit 1b5e7c4

Please sign in to comment.