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

Commit 6454c6d2 authored by Sandro Meier's avatar Sandro Meier
Browse files

Add action type to exception message for easier debugging

The exception only mentioned that the action is not supported, but not
what action was used.

Test: N/A
Bug: 271946580
Change-Id: Ib264172e794a912733572c9e72f3f2b526827845
parent e6064b2a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -255,7 +255,8 @@ public final class VirtualTouchEvent implements Parcelable {
        public @NonNull Builder setAction(@Action int action) {
            if (action != ACTION_DOWN && action != ACTION_UP && action != ACTION_MOVE
                    && action != ACTION_CANCEL) {
                throw new IllegalArgumentException("Unsupported touch event action type");
                throw new IllegalArgumentException(
                        "Unsupported touch event action type: " + action);
            }
            mAction = action;
            return this;