diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWDialogFragment.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWDialogFragment.java index 9743b432d..1b985b186 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWDialogFragment.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWDialogFragment.java @@ -32,7 +32,7 @@ import java.util.Map; import junit.framework.Assert; -class XWDialogFragment extends DialogFragment { +public class XWDialogFragment extends DialogFragment { private static final String TAG = XWDialogFragment.class.getSimpleName(); private OnDismissListener m_onDismiss; diff --git a/xwords4/android/jni/xwjni.c b/xwords4/android/jni/xwjni.c index 619393d39..c01ab8d70 100644 --- a/xwords4/android/jni/xwjni.c +++ b/xwords4/android/jni/xwjni.c @@ -74,6 +74,7 @@ typedef int GamePtrType; #endif #ifdef LOG_MAPPING +# ifdef DEBUG static int countUsed(const EnvThreadInfo* ti) { @@ -81,14 +82,15 @@ countUsed(const EnvThreadInfo* ti) for ( int ii = 0; ii < ti->nEntries; ++ii ) { EnvThreadEntry* entry = &ti->entries[ii]; if ( 0 != entry->owner ) { -# ifdef LOG_MAPPING_ALL +# ifdef LOG_MAPPING_ALL XP_LOGF( "%s(): ii=%d; owner: %x", __func__, ii, (unsigned int)entry->owner ); -# endif +# endif ++count; } } return count; } +# endif #endif static void @@ -212,11 +214,13 @@ JNIEnv* envForMe( EnvThreadInfo* ti, const char* caller ) { JNIEnv* result = prvEnvForMe( ti ); +#ifdef DEBUG if( !result ) { pthread_t self = pthread_self(); XP_LOGF( "no env for %s (thread %x)", caller, (int)self ); XP_ASSERT(0); } +#endif return result; }