Open lqman104 opened 5 years ago
Edit BubbleShowCase.kt line 99 ->
backgroundDimLayout?.let { if (it.parent != null) { (it.parent as ViewGroup).removeView(it) // <- fix } rootView.addView(AnimationUtils.setAnimationToView(backgroundDimLayout!!, animation)) }
Hi, I am using this library version 1.3.1. I call BubbleShowCase inside view pager on each page after the content is showed. If I change pages quickly, this error appears. Any solution?
Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner + 4102(ViewGroup.java:4102) at android.view.ViewGroup.addView + 3952(ViewGroup.java:3952) at android.view.ViewGroup.addView + 3893(ViewGroup.java:3893) at android.view.ViewGroup.addView + 3866(ViewGroup.java:3866) at com.elconfidencial.bubbleshowcase.BubbleShowCase.show + 120(BubbleShowCase.java:120) at com.elconfidencial.bubbleshowcase.BubbleShowCaseBuilder.show + 275(BubbleShowCaseBuilder.java:275) at com.elconfidencial.bubbleshowcase.BubbleShowCaseSequence.show + 47(BubbleShowCaseSequence.java:47) at com.elconfidencial.bubbleshowcase.BubbleShowCaseSequence.show + 23(BubbleShowCaseSequence.java:23) at com.innovecto.etalastic.revamp.ui.product.ManageProductActivity.lambda$checkOnBoardingAvailable$3 + 239(ManageProductActivity.java:239) at com.innovecto.etalastic.revamp.ui.product.ManageProductActivity.lambda$JgVh0IkzatmbPcNMnm5QqXyY-1Y(ManageProductActivity.java)