Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout do not responde when target is dismissed #365

Open
emmanuel0027 opened this issue Oct 18, 2019 · 2 comments
Open

Layout do not responde when target is dismissed #365

emmanuel0027 opened this issue Oct 18, 2019 · 2 comments

Comments

@emmanuel0027
Copy link

  • [X ] I have verified the issue exists on the latest version
  • [ X] I am able to reproduce it

**Version used: 1.13.0

Stack trace:

**Android version: 8.1.0

I'm using a target on fragment but, when target is dismissed the layout don't responde, any button can not be pressed, or any other element.

`@Override
public void onViewCreated(@nonnull View view, @nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);

    TapTargetView.showFor(getActivity(),                 // `this` is an Activity
            TapTarget.forView(view.findViewById(R.id.searchFabButton), "This is a target", "We have the best targets, believe me")
                    .targetCircleColor(R.color.white)
                    .drawShadow(true)
                    .textColor(R.color.white)
                    .tintTarget(false)
                    .outerCircleColor(R.color.black)
                    .dimColor(R.color.black)
                    .cancelable(true),
            
            new TapTargetView.Listener() {          // The listener can listen for regular clicks, long clicks or cancels
                @Override
                public void onTargetClick(TapTargetView view) {
                    super.onTargetClick(view);      // This call is optional
                    view.dismiss(true);
                    Log.d("TAG","onTargetClick");
                }

                @Override
                public void onOuterCircleClick(TapTargetView view) {
                    super.onOuterCircleClick(view);
                    Log.d("TAG","onOuterCircleClick");
                    view.dismiss(true);
                }

                @Override
                public void onTargetCancel(TapTargetView view) {
                    super.onTargetCancel(view);
                    view.dismiss(true);
                    Log.d("TAG","onTargetCancel");
                }
            });
}`
@MagneticLlama
Copy link

I am experiencing the same issue, but it's inconsistent.

@laurentlr
Copy link

laurentlr commented Mar 25, 2021

Got same issue on Android 11 - MIUI 12.2.7 - Xiaomi Mi 10, one the feature discovery is dismiss I lose all click on main layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants