mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
add newbie message about how NFC works
This commit is contained in:
parent
c42271ee31
commit
b874406b7b
5 changed files with 16 additions and 6 deletions
|
@ -82,6 +82,7 @@
|
||||||
<string name="key_udp_interval">key_udp_interval</string>
|
<string name="key_udp_interval">key_udp_interval</string>
|
||||||
|
|
||||||
<string name="key_notagain_sync">key_notagain_sync</string>
|
<string name="key_notagain_sync">key_notagain_sync</string>
|
||||||
|
<string name="key_notagain_sms_ready">key_notagain_sms_ready</string>
|
||||||
<string name="key_notagain_newselect">key_notagain_newselect</string>
|
<string name="key_notagain_newselect">key_notagain_newselect</string>
|
||||||
<string name="key_notagain_backclears">key_notagain_backclears</string>
|
<string name="key_notagain_backclears">key_notagain_backclears</string>
|
||||||
<string name="key_notagain_chat">key_notagain_chat</string>
|
<string name="key_notagain_chat">key_notagain_chat</string>
|
||||||
|
|
|
@ -2187,4 +2187,9 @@
|
||||||
like yours that depend on the \"Action bar.\"</string>
|
like yours that depend on the \"Action bar.\"</string>
|
||||||
|
|
||||||
<string name="sms_ready_text">Tap the receiving device now</string>
|
<string name="sms_ready_text">Tap the receiving device now</string>
|
||||||
|
|
||||||
|
<string name="not_again_sms_ready">You have NFC enabled. That
|
||||||
|
means that any time a board that\'s missing a player is open, you
|
||||||
|
can tap a nearby person\'s device to invite him/her to
|
||||||
|
play – if he/she is also using NFC.</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -924,9 +924,13 @@ public class BoardActivity extends XWActivity
|
||||||
{
|
{
|
||||||
if ( LAUNCH_INVITE_ACTION == id ) {
|
if ( LAUNCH_INVITE_ACTION == id ) {
|
||||||
if ( DlgDelegate.DISMISS_BUTTON != which ) {
|
if ( DlgDelegate.DISMISS_BUTTON != which ) {
|
||||||
if ( DlgDelegate.NFC_BTN == which
|
if ( DlgDelegate.NFC_BTN == which ) {
|
||||||
&& !NFCUtils.nfcAvail( this )[1] ) {
|
if ( NFCUtils.nfcAvail( this )[1] ) {
|
||||||
showDialog( ENABLE_NFC );
|
showNotAgainDlgThen( R.string.not_again_sms_ready,
|
||||||
|
R.string.key_notagain_sms_ready );
|
||||||
|
} else {
|
||||||
|
showDialog( ENABLE_NFC );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
String inviteID = GameUtils.formatGameID( m_gi.gameID );
|
String inviteID = GameUtils.formatGameID( m_gi.gameID );
|
||||||
GameUtils.launchInviteActivity( this, which, m_room,
|
GameUtils.launchInviteActivity( this, which, m_room,
|
||||||
|
|
|
@ -669,7 +669,7 @@ public class GameUtils {
|
||||||
activity.startActivity( intent );
|
activity.startActivity( intent );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void launchGame( Activity activity, long rowid)
|
public static void launchGame( Activity activity, long rowid )
|
||||||
{
|
{
|
||||||
launchGame( activity, rowid, false );
|
launchGame( activity, rowid, false );
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,8 +322,8 @@ public class NewGameActivity extends XWActivity {
|
||||||
private void makeNewGame( boolean networked, boolean launch,
|
private void makeNewGame( boolean networked, boolean launch,
|
||||||
int chosen )
|
int chosen )
|
||||||
{
|
{
|
||||||
if ( DlgDelegate.NFC_BTN == chosen
|
boolean viaNFC = DlgDelegate.NFC_BTN == chosen;
|
||||||
&& !NFCUtils.nfcAvail( this )[1] ) {
|
if ( viaNFC && !NFCUtils.nfcAvail( this )[1] ) {
|
||||||
showDialog( ENABLE_NFC );
|
showDialog( ENABLE_NFC );
|
||||||
} else {
|
} else {
|
||||||
String room = null;
|
String room = null;
|
||||||
|
|
Loading…
Reference in a new issue