mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
use getHandler()
This commit is contained in:
parent
787367071d
commit
dbc1bb1cd5
1 changed files with 10 additions and 10 deletions
|
@ -90,7 +90,6 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
private int m_lastSecsLeft;
|
||||
private int m_lastTimerPlayer;
|
||||
private int m_pendingScore;
|
||||
private Handler m_viewHandler;
|
||||
private CommsAddrRec.CommsConnType m_connType =
|
||||
CommsAddrRec.CommsConnType.COMMS_CONN_NONE;
|
||||
|
||||
|
@ -182,8 +181,6 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
for ( int ii = 0; ii < ids.length; ++ii ) {
|
||||
m_bonusSummaries[ ii+1 ] = getResources().getString( ids[ii] );
|
||||
}
|
||||
|
||||
m_viewHandler = new Handler();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -838,13 +835,16 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
|
||||
if ( !m_arrowHintShown ) {
|
||||
m_arrowHintShown = true;
|
||||
m_viewHandler.post( new Runnable() {
|
||||
public void run() {
|
||||
m_parent.
|
||||
showNotAgainDlgThen( R.string.not_again_arrow,
|
||||
R.string.key_notagain_arrow );
|
||||
}
|
||||
} );
|
||||
Handler handler = getHandler();
|
||||
if ( null != handler ) {
|
||||
handler.post( new Runnable() {
|
||||
public void run() {
|
||||
m_parent.
|
||||
showNotAgainDlgThen( R.string.not_again_arrow,
|
||||
R.string.
|
||||
key_notagain_arrow );
|
||||
} } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue