FancyShowCaseView icon indicating copy to clipboard operation
FancyShowCaseView copied to clipboard

IllegalArgumentException in DecorCaptionView

Open Lars3n95 opened this issue 4 years ago • 1 comments

Used FancyShowCaseView version

1.3.5

Stacktrace

java.lang.IllegalArgumentException: 
  at com.android.internal.widget.DecorCaptionView.addView (DecorCaptionView.java:269)
  at android.view.ViewGroup.addView (ViewGroup.java:4919)
  at android.view.ViewGroup.addView (ViewGroup.java:4892)
  at me.toptas.fancyshowcase.FancyShowCaseView$focus$1.run (FancyShowCaseView.kt:135)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7408)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

How you show/hide FancyShowCaseView (in Activity or Fragment, in which method)

Example: In Fragments onCreateView method I use the code below to show:

final FancyShowCaseView scGame1 = new FancyShowCaseView.Builder(requireActivity())
        .fitSystemWindows(true)
        .title(getString(R.string.help_sc_game1))
        .enableAutoTextPosition()
        .focusOn(firstButton)
        .build();

final FancyShowCaseView scGame2 = new FancyShowCaseView.Builder(requireActivity())
        .fitSystemWindows(true)
        .title(getString(R.string.help_sc_game2))
        .enableAutoTextPosition()
        .focusOn(secondButton)
        .build();


queue = new FancyShowCaseQueue()
        .add(scGame1)
        .add(scGame2);

queue.show();

At the moment the crash only occured on the Surface Duo. So maybe it is something with the Dual Screen?

Lars3n95 avatar Sep 01 '21 05:09 Lars3n95

Also got a similar problem from Google Play.

samsung beyond1 (Galaxy S10) Android 12 (SDK 31)

samsung gts4llte (Galaxy Tab S4) Android 10 (SDK 29)

Exception java.lang.IllegalArgumentException:
  at com.android.internal.widget.DecorCaptionView.addView (DecorCaptionView.java:985)
  at android.view.ViewGroup.addView (ViewGroup.java:5717)
  at android.view.ViewGroup.addView (ViewGroup.java:5690)
  at me.toptas.fancyshowcase.FancyShowCaseView$focus$1.run (FancyShowCaseView.java:80)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8107)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)`

Tiarait avatar Dec 20 '23 15:12 Tiarait