From 9bd51e43057c84b57d712b9108c623090f6c0ca9 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 7 Jan 2010 14:27:20 +0000 Subject: [PATCH] add yOffsetChange commented out (not needed for scrolling, just for UI to show thumb.) --- .../src/org/eehouse/android/xw4/jni/XW_UtilCtxt.java | 3 +++ xwords4/android/utilwrapper.c | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XW_UtilCtxt.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XW_UtilCtxt.java index 57f69acbc..8a3776b14 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XW_UtilCtxt.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XW_UtilCtxt.java @@ -14,4 +14,7 @@ public interface XW_UtilCtxt { void clearTimer( int why ); void requestTime(); + // Don't need this unless we have a scroll thumb to indicate position + //void yOffsetChange( int oldOffset, int newOffset ); + } diff --git a/xwords4/android/utilwrapper.c b/xwords4/android/utilwrapper.c index 5920b0665..812490c80 100644 --- a/xwords4/android/utilwrapper.c +++ b/xwords4/android/utilwrapper.c @@ -100,7 +100,15 @@ and_util_trayHiddenChange(XW_UtilCtxt* uc, XW_TrayVisState newState, static void and_util_yOffsetChange(XW_UtilCtxt* uc, XP_U16 oldOffset, XP_U16 newOffset ) { - LOG_FUNC(); +#if 0 + AndUtil* util = (AndUtil*)uc; + JNIEnv* env = util->env; + const char* sig = "(II)V"; + jmethodID mid = getMethodID( env, util->j_util, "yOffsetChange", sig ); + + (*env)->CallVoidMethod( env, util->j_util, mid, + oldOffset, newOffset ); +#endif } #ifdef XWFEATURE_TURNCHANGENOTIFY