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

Commit bdca3e7e authored by Josep del Rio's avatar Josep del Rio
Browse files

Add comment detailing MAX_RANGE

Followup on ag/20930150; add a comment to explain why we need to
limit the amount of ranges.

Bug: 220115129
Test: no code change, only a comment
Change-Id: I7ce1ebdc1c1dcd5474639ec9506b0e5b9df02498
parent 0fea9126
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -446,6 +446,7 @@ public final class InputDevice implements Parcelable {
     */
    public static final int KEYBOARD_TYPE_ALPHABETIC = 2;

    // Cap motion ranges to prevent attacks (b/25637534)
    private static final int MAX_RANGES = 1000;

    private static final int VIBRATOR_ID_ALL = -1;