@@ -59,7 +59,7 @@ public class AndroidGesturesManager {
5959 public static final int GESTURE_TYPE_QUICK_SCALE = 15 ;
6060
6161 private final List <Set <Integer >> mutuallyExclusiveGestures = new ArrayList <>();
62- private final List <BaseGesture > detectors = new CopyOnWriteArrayList <>() ;
62+ private final List <BaseGesture > detectors ;
6363
6464 private final StandardGestureDetector standardGestureDetector ;
6565 private final StandardScaleGestureDetector standardScaleGestureDetector ;
@@ -129,13 +129,15 @@ public AndroidGesturesManager(Context context, List<Set<Integer>> exclusiveGestu
129129 moveGestureDetector = new MoveGestureDetector (context , this );
130130 standardGestureDetector = new StandardGestureDetector (context , this );
131131
132- detectors .add (rotateGestureDetector );
133- detectors .add (standardScaleGestureDetector );
134- detectors .add (shoveGestureDetector );
135- detectors .add (sidewaysShoveGestureDetector );
136- detectors .add (multiFingerTapGestureDetector );
137- detectors .add (moveGestureDetector );
138- detectors .add (standardGestureDetector );
132+ detectors = new CopyOnWriteArrayList <BaseGesture >(Arrays .asList (
133+ rotateGestureDetector ,
134+ standardScaleGestureDetector ,
135+ shoveGestureDetector ,
136+ sidewaysShoveGestureDetector ,
137+ multiFingerTapGestureDetector ,
138+ moveGestureDetector ,
139+ standardGestureDetector
140+ ));
139141
140142 if (applyDefaultThresholds ) {
141143 initDefaultThresholds ();
0 commit comments