mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-29 22:43:28 +08:00
getAction -> action
This commit is contained in:
@@ -11,7 +11,7 @@ class MainActivity < Android::App::Activity
|
||||
|
||||
def dispatchTouchEvent(event)
|
||||
@counter ||= 0
|
||||
case event.getAction
|
||||
case event.action
|
||||
when Android::View::MotionEvent::ACTION_UP
|
||||
@counter += 1
|
||||
@text.text = "Touched #{@counter} times!"
|
||||
|
||||
Reference in New Issue
Block a user