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

Commit ae46022f authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Fixes NPE on user changing back to Owner

Change-Id: I776dc713f2616ee0e57a0d8be1b7aab50d3fc453
Fixes: 116298366
Test: Manual and runtest
parent e0ef793d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -365,7 +365,11 @@ public class QSFragment extends Fragment implements QS, CommandQueue.Callbacks {
                .setListener(new AnimatorListenerAdapter() {
                    @Override
                    public void onAnimationEnd(Animator animation) {
                        if (getView() != null) {
                            // The view could be destroyed before the animation completes when
                            // switching users.
                            getView().animate().setListener(null);
                        }
                        mHeaderAnimating = false;
                        updateQsState();
                    }