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

Error when animation is running on ReadableBottomBar #15

Closed
httyd98 opened this issue Jul 25, 2019 · 0 comments
Closed

Error when animation is running on ReadableBottomBar #15

httyd98 opened this issue Jul 25, 2019 · 0 comments

Comments

@httyd98
Copy link

httyd98 commented Jul 25, 2019

The error occurs when a view docked under the ReadableBar is set with visibility = view.VISIBLE at runtime from code, therefore the height of this view increases by raising the ReadableBar and then creating an animation event for the ReadableBar. This animation event crashes the app. I'm using the ReadableBar inside a constraint layout with android: animateLayoutChanges = "true"

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.animation.Animation.setStartTime(long)' on a null object reference at android.view.View.startAnimation(View.java:23707) at com.iammert.library.readablebottombar.BottomBarItemView.select(BottomBarItemView.kt:65) at com.iammert.library.readablebottombar.ReadableBottomBar$drawBottomBarItems$1$listener$1.onGlobalLayout(ReadableBottomBar.kt:162) at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:945) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2542) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1635) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7795) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1172) at android.view.Choreographer.doCallbacks(Choreographer.java:984) at android.view.Choreographer.doFrame(Choreographer.java:809) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1158) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6863) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

@httyd98 httyd98 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2024
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