diff --git a/xwords4/android/XWords4/jni/utilwrapper.c b/xwords4/android/XWords4/jni/utilwrapper.c index e3cb3e60c..3c2513d8a 100644 --- a/xwords4/android/XWords4/jni/utilwrapper.c +++ b/xwords4/android/XWords4/jni/utilwrapper.c @@ -378,13 +378,17 @@ and_util_getTraySearchLimits(XW_UtilCtxt* uc, XP_U16* min, XP_U16* max ) static void and_util_engineStarting( XW_UtilCtxt* uc, XP_U16 nBlanks ) { - LOG_FUNC(); + UTIL_CBK_HEADER("engineStarting", "(I)V" ); + (*env)->CallVoidMethod( env, util->jutil, mid, nBlanks ); + UTIL_CBK_TAIL(); } static void and_util_engineStopping( XW_UtilCtxt* uc ) { - LOG_FUNC(); + UTIL_CBK_HEADER("engineStopping", "()V" ); + (*env)->CallVoidMethod( env, util->jutil, mid ); + UTIL_CBK_TAIL(); } #endif diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index f461f0560..2204b6d83 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -879,6 +879,19 @@ public class BoardActivity extends Activity implements UtilCtxt { return ! m_jniThread.busy(); } + public void engineStarting( int nBlanks ) + { + Utils.logf( "engineStarting(%d)", nBlanks ); + // Looks like I'll need my own transparent/floating window to + // show progress other than in the title bar (which I ain't + // always got). + } + + public void engineStopping() + { + Utils.logf( "engineStopping" ); + } + public String getUserString( int stringCode ) { int id = 0; diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/UtilCtxt.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/UtilCtxt.java index d0f4cc02f..cf94852dc 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/UtilCtxt.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/UtilCtxt.java @@ -34,6 +34,8 @@ public interface UtilCtxt { String askPassword( String name ); boolean engineProgressCallback(); + void engineStarting( int nBlanks ); + void engineStopping(); // Values for why; should be enums public static final int TIMER_PENDOWN = 1;