File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/src/main/java/easily/tech/guideview/lib Expand file tree Collapse file tree 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 {
3030 private FrameLayout flContainer ;
3131 private GuideViewBundle currentBundle ;
3232 private GuideView currentGuideView ;
33+ private boolean isShowing ;
3334
3435 @ Override
3536 public void onCreate (@ Nullable Bundle savedInstanceState ) {
@@ -54,7 +55,10 @@ public void onStart() {
5455 }
5556 window .setLayout (ViewGroup .LayoutParams .MATCH_PARENT , ViewGroup .LayoutParams .MATCH_PARENT );
5657 window .setBackgroundDrawable (new ColorDrawable (Color .TRANSPARENT ));
57- showGuideView ();
58+ if (!isShowing ){
59+ isShowing =true ;
60+ showGuideView ();
61+ }
5862 }
5963
6064 public void setGuideViewBundles (List <GuideViewBundle > guideViewBundles ) {
@@ -139,6 +143,7 @@ public void dismiss() {
139143 currentBundle = null ;
140144 currentGuideView = null ;
141145 }
146+ isShowing =false ;
142147 super .dismiss ();
143148 }
144149 }
You can’t perform that action at this time.
0 commit comments