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

Commit e2e0d0c

Browse files
committed
Merge pull request #188 from juliendn/master
Update ShowcaseView.java
2 parents 571e06c + 8381a97 commit e2e0d0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ protected void dispatchDraw(Canvas canvas) {
260260

261261
@Override
262262
public void onClick(View view) {
263-
// If the type is set to one-shot, store that it has shot
264-
shotStateStore.storeShot();
265263
hide();
266264
}
267265

268266
public void hide() {
269267
clearBitmap();
268+
// If the type is set to one-shot, store that it has shot
269+
shotStateStore.storeShot();
270270
mEventListener.onShowcaseViewHide(this);
271271
fadeOutShowcase();
272272
}
@@ -313,7 +313,6 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
313313

314314
if (MotionEvent.ACTION_UP == motionEvent.getAction() &&
315315
hideOnTouch && distanceFromFocus > showcaseDrawer.getBlockedRadius()) {
316-
shotStateStore.storeShot();
317316
this.hide();
318317
return true;
319318
}

0 commit comments

Comments
 (0)