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

Commit d024bc36 authored by Calvin Huang's avatar Calvin Huang
Browse files

Fix car systemUI crashing on user switch

Add a null check when unregister the homeTransitionListener

Fix: 346328536
Test: manually switch user on car target
Change-Id: Ib40b2bc671d519040c86bece0eadfe65f82a5210
parent 19009bd6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -133,7 +133,9 @@ public class HomeTransitionObserver implements TransitionObserver,
     */
    public void invalidate(Transitions transitions) {
        transitions.unregisterObserver(this);
        if (mListener != null) {
            // Unregister the listener to ensure any registered binder death recipients are unlinked
            mListener.unregister();
        }
    }
}