Fix empty CompositePositionUpdateListener
ArrayUtils methods can return null. Fix the assumption made by CPUL. Test: atest android.view.cts.SystemGestureExclusionRectsTest Change-Id: I513e179b9a5715c381218a1ceb7e35dc91d1797a
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user