Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.

Commit a1d9678

Browse files
author
Robert Nordan
committed
Store shot state on touch hide
If hide on touch is enabled, the shot state should be stored when hiding, just like in onClick.
1 parent bc9664d commit a1d9678

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/main/java/com/github/amlcurran/showcaseview/ShowcaseView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
313313

314314
if (MotionEvent.ACTION_UP == motionEvent.getAction() &&
315315
hideOnTouch && distanceFromFocus > showcaseDrawer.getBlockedRadius()) {
316+
shotStateStore.storeShot();
316317
this.hide();
317318
return true;
318319
}

0 commit comments

Comments
 (0)