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

Commit 865ce750 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix empty CompositePositionUpdateListener"

parents 6897a4e5 6b46fc59
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -284,9 +284,10 @@ public final class RenderNode {

    private static final class CompositePositionUpdateListener implements PositionUpdateListener {
        private final PositionUpdateListener[] mListeners;
        private static final PositionUpdateListener[] sEmpty = new PositionUpdateListener[0];

        CompositePositionUpdateListener(PositionUpdateListener... listeners) {
            mListeners = listeners;
            mListeners = listeners != null ? listeners : sEmpty;
        }

        public CompositePositionUpdateListener with(PositionUpdateListener listener) {