Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 12147e69 authored by George Lin's avatar George Lin
Browse files

Fix race condition for clock carousel

Carousel.mMotionLayout is only ready after attachedToWindow. We can only
bind the view after attachedToWindow; otherwise, whenever the flow emits
any events before attachedToWindow and triggers calls to
Carousel.mMotionLayout, there will be a null pointer exception.

Test: Manually tested the app does not crash when emits early
Fixes: 278784117
Change-Id: Id65ed932b1526062063e453e910d16e01e1508dd
parent cd6f9606
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment