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

Can't Have Less Than 3 Items #91

Open
AntumDeluge opened this issue Feb 7, 2022 · 0 comments
Open

Can't Have Less Than 3 Items #91

AntumDeluge opened this issue Feb 7, 2022 · 0 comments

Comments

@AntumDeluge
Copy link

AntumDeluge commented Feb 7, 2022

I cannot create less than three items. Is this intended behavior?

$ adb logcat -b crash -d
02-07 15:34:55.487 27586 27586 E AndroidRuntime: FATAL EXCEPTION: main
02-07 15:34:55.487 27586 27586 E AndroidRuntime: Process: org.arianne.stendhal.client.debug, PID: 27586
02-07 15:34:55.487 27586 27586 E AndroidRuntime: java.lang.IllegalArgumentException: BottomNavigation expects 3 to 5 items. 2 found
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at it.sephiroth.android.library.bottomnavigation.BottomNavigation.setItems(BottomNavigation.kt:532)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at it.sephiroth.android.library.bottomnavigation.BottomNavigation.onAttachedToWindow(BottomNavigation.kt:504)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.View.dispatchAttachedToWindow(View.java:14575)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2880)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2887)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1410)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1140)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6232)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:670)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:606)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:739)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:95)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:148)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:5551)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
02-07 15:34:55.487 27586 27586 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)

Edit: I guess it is.

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

1 participant