From f6a951f84516df3cca79fd939c6fd8339e653a08 Mon Sep 17 00:00:00 2001 From: ehouse Date: Thu, 7 Jan 2010 14:30:56 +0000 Subject: [PATCH] add yOffsetChange commented out --- .../eehouse/android/xw4/BoardActivity.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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 4808a1bea..d837ec95a 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -1,3 +1,4 @@ +/* -*- compile-command: "cd ../../../../../; ant reinstall"; -*- */ package org.eehouse.android.xw4; @@ -10,6 +11,7 @@ import android.view.MenuInflater; import android.content.res.AssetManager; import java.io.InputStream; import android.os.Handler; +import android.content.res.Configuration; import org.eehouse.android.xw4.jni.*; @@ -33,7 +35,6 @@ public class BoardActivity extends Activity implements XW_UtilCtxt, Runnable { m_handle = handle; } public void run() { - Utils.logf( "TimerRunnable.run(); m_handle=" + m_handle ); m_timers[m_why] = null; XwJNI.timerFired( m_jniGamePtr, m_why, m_when, m_handle ); } @@ -143,6 +144,14 @@ public class BoardActivity extends Activity implements XW_UtilCtxt, Runnable { return handled; } + // gets called for orientation changes only if + // android:configChanges="orientation" set in AndroidManifest.xml + + // public void onConfigurationChanged( Configuration newConfig ) + // { + // super.onConfigurationChanged( newConfig ); + // } + ////////////////////////////////////////// // XW_UtilCtxt interface implementation // ////////////////////////////////////////// @@ -172,7 +181,6 @@ public class BoardActivity extends Activity implements XW_UtilCtxt, Runnable { } public void run() { - Utils.logf( "run called" ); if ( XwJNI.server_do( m_jniGamePtr ) ) { m_view.invalidate(); } @@ -184,8 +192,6 @@ public class BoardActivity extends Activity implements XW_UtilCtxt, Runnable { public void setTimer( int why, int when, int handle ) { - Utils.logf( "setTimer called" ); - if ( null != m_timers[why] ) { m_handler.removeCallbacks( m_timers[why] ); } @@ -202,4 +208,10 @@ public class BoardActivity extends Activity implements XW_UtilCtxt, Runnable { m_timers[why] = null; } } + + // Don't need this unless we have a scroll thumb to indicate position + // public void yOffsetChange( int oldOffset, int newOffset ) + // { + // Utils.logf( "yOffsetChange(" + oldOffset + "," + newOffset + ")" ); + // } }