From cc0bf4bc43257f2b2a8e03fd9f992087453f243a Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 3 Apr 2018 02:12:23 +0700 Subject: [PATCH] Fix constants in switch cases --- src/in/celest/xash3d/XashTutorialActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/in/celest/xash3d/XashTutorialActivity.java b/src/in/celest/xash3d/XashTutorialActivity.java index 94b58b08..368f5cb7 100644 --- a/src/in/celest/xash3d/XashTutorialActivity.java +++ b/src/in/celest/xash3d/XashTutorialActivity.java @@ -110,19 +110,19 @@ public class XashTutorialActivity extends Activity implements View.OnClickListen { switch( e.getAction() ) { - case e.ACTION_DOWN: + case MotionEvent.ACTION_DOWN: // store swipe start lastx = firstx = e.getX(); // animation will be started on next scroll event anim = true; break; - case e.ACTION_MOVE: + case MotionEvent.ACTION_MOVE: // animation will start in supercall, so select direction now isInc = e.getX() < lastx; targetPage = isInc?currentPage+1:currentPage-1; lastx = e.getX(); break; - case e.ACTION_UP: + case MotionEvent.ACTION_UP: // detect misstouch (<100 pixels) if( Math.abs(e.getX()-firstx) < 100) {