File tree 1 file changed +6
-1
lines changed
lib/src/main/java/easily/tech/guideview/lib
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public class GuideViewFragment extends DialogFragment {
30
30
private FrameLayout flContainer ;
31
31
private GuideViewBundle currentBundle ;
32
32
private GuideView currentGuideView ;
33
+ private boolean isShowing ;
33
34
34
35
@ Override
35
36
public void onCreate (@ Nullable Bundle savedInstanceState ) {
@@ -54,7 +55,10 @@ public void onStart() {
54
55
}
55
56
window .setLayout (ViewGroup .LayoutParams .MATCH_PARENT , ViewGroup .LayoutParams .MATCH_PARENT );
56
57
window .setBackgroundDrawable (new ColorDrawable (Color .TRANSPARENT ));
57
- showGuideView ();
58
+ if (!isShowing ){
59
+ isShowing =true ;
60
+ showGuideView ();
61
+ }
58
62
}
59
63
60
64
public void setGuideViewBundles (List <GuideViewBundle > guideViewBundles ) {
@@ -139,6 +143,7 @@ public void dismiss() {
139
143
currentBundle = null ;
140
144
currentGuideView = null ;
141
145
}
146
+ isShowing =false ;
142
147
super .dismiss ();
143
148
}
144
149
}
You can’t perform that action at this time.
0 commit comments