We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d9bae commit aa13723Copy full SHA for aa13723
APIJSON-Android/APIJSONTest/app/src/main/java/apijson/demo/InputUtil.java
@@ -7,7 +7,8 @@
7
public class InputUtil {
8
9
public static String getActionName(int action) {
10
- return MotionEvent.actionToString(action);
+ String s = StringUtil.getTrimedString(MotionEvent.actionToString(action));
11
+ return s.startsWith("ACTION_") ? s.substring("ACTION_".length()) : s;
12
// switch (action) {
13
// case MotionEvent.ACTION_DOWN:
14
// return "DOWN";
0 commit comments