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

IllegalArgumentException in DecorCaptionView #226

Open
Lars3n95 opened this issue Sep 1, 2021 · 1 comment
Open

IllegalArgumentException in DecorCaptionView #226

Lars3n95 opened this issue Sep 1, 2021 · 1 comment

Comments

@Lars3n95
Copy link

Lars3n95 commented Sep 1, 2021

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?

@Tiarait
Copy link

Tiarait commented Dec 20, 2023

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)`

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

No branches or pull requests

3 participants