@Override public void onUserInteraction() { if (mLifeCycleListener != null){ mLifeCycleListener.onActivityUserInteraction(PinActivity.this); } super.onUserInteraction(); }
/** * * @see android.app.Activity#onUserInteraction() */ public void onUserInteraction() { mActivity.onUserInteraction(); }
@Override public void onUserInteraction() { mOriginActivity.onUserInteraction(); }
@Override public void onUserInteraction() { super.onUserInteraction(); dispatcher.dispatchOnUserInteraction(this); }
public boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { mActivity.onUserInteraction(); } return mWindowEventDispatcher.dispatchTouchEvent(ev) || (hasInterceptor() && mEventInterceptor.dispatchTouchEvent(ev)) || mActivityEventDispatcher.dispatchTouchEvent(ev); }
public boolean dispatchKeyEvent(KeyEvent event) { mActivity.onUserInteraction(); return mWindowEventDispatcher.dispatchKeyEvent(event) || (hasInterceptor() && mEventInterceptor.dispatchKeyEvent(event)) || mActivityEventDispatcher.dispatchKeyEvent(event); }
public boolean dispatchKeyShortcutEvent(KeyEvent event) { mActivity.onUserInteraction(); return mWindowEventDispatcher.dispatchKeyShortcutEvent(event) || (hasInterceptor() && mEventInterceptor.dispatchKeyShortcutEvent(event)) || mActivityEventDispatcher.dispatchKeyShortcutEvent(event); }
public boolean dispatchTrackballEvent(MotionEvent ev) { mActivity.onUserInteraction(); return mWindowEventDispatcher.dispatchTrackballEvent(ev) || (hasInterceptor() && mEventInterceptor.dispatchTrackballEvent(ev)) || mActivityEventDispatcher.dispatchTrackballEvent(ev); }
public boolean dispatchGenericMotionEvent(MotionEvent ev) { mActivity.onUserInteraction(); return mWindowEventDispatcher.dispatchGenericMotionEvent(ev) || (hasInterceptor() && mEventInterceptor.dispatchGenericMotionEvent(ev)) || mActivityEventDispatcher.dispatchGenericMotionEvent(ev); } }
public void onUserInteraction() { if (ScriptLoader.isCalledFromJRuby()) {super.onUserInteraction(); return;} if (!JRubyAdapter.isInitialized()) { Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onUserInteraction"); {super.onUserInteraction(); return;} } String rubyClassName = scriptInfo.getRubyClassName(); if (rubyClassName == null) {super.onUserInteraction(); return;} if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onUserInteraction}")) { JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onUserInteraction"); } else { if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_user_interaction}")) { JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_user_interaction"); } else { if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_user_interaction}")) { JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_user_interaction"); } else { JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onUserInteraction"); } } } }