mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
don't recomment tapping the pts area of tray when it's not visible
This commit is contained in:
parent
4abc9623f9
commit
c294ad45cf
2 changed files with 10 additions and 2 deletions
|
@ -772,8 +772,15 @@ public class BoardActivity extends XWActivity
|
||||||
int id = item.getItemId();
|
int id = item.getItemId();
|
||||||
switch ( id ) {
|
switch ( id ) {
|
||||||
case R.id.board_menu_done:
|
case R.id.board_menu_done:
|
||||||
showNotAgainDlgThen( R.string.not_again_done,
|
int nTiles = XwJNI.model_getNumTilesInTray( m_jniGamePtr,
|
||||||
R.string.key_notagain_done, COMMIT_ACTION );
|
m_view.getCurPlayer() );
|
||||||
|
DbgUtils.logf( "getNumTilesInTray=>%d", nTiles );
|
||||||
|
if ( XWApp.MAX_TRAY_TILES > nTiles ) {
|
||||||
|
showNotAgainDlgThen( R.string.not_again_done,
|
||||||
|
R.string.key_notagain_done, COMMIT_ACTION );
|
||||||
|
} else {
|
||||||
|
dlgButtonClicked( COMMIT_ACTION, AlertDialog.BUTTON_POSITIVE );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.board_menu_trade_commit:
|
case R.id.board_menu_trade_commit:
|
||||||
|
|
|
@ -40,6 +40,7 @@ public class XWApp extends Application {
|
||||||
public static final boolean UDP_ENABLED = true;
|
public static final boolean UDP_ENABLED = true;
|
||||||
|
|
||||||
public static final String SMS_PUBLIC_HEADER = "-XW4";
|
public static final String SMS_PUBLIC_HEADER = "-XW4";
|
||||||
|
public static final int MAX_TRAY_TILES = 7; // comtypes.h
|
||||||
|
|
||||||
private static UUID s_UUID = null;
|
private static UUID s_UUID = null;
|
||||||
private static Boolean s_onEmulator = null;
|
private static Boolean s_onEmulator = null;
|
||||||
|
|
Loading…
Reference in a new issue