mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
add advisement not to use connect-by-room-name
This commit is contained in:
parent
b641be30e7
commit
19f4ebc727
3 changed files with 31 additions and 1 deletions
|
@ -111,6 +111,7 @@ public class GameConfigDelegate extends DelegateBase
|
||||||
private CommonPrefs m_cp;
|
private CommonPrefs m_cp;
|
||||||
private boolean m_gameStarted = false;
|
private boolean m_gameStarted = false;
|
||||||
private String[] m_connStrings;
|
private String[] m_connStrings;
|
||||||
|
private boolean m_nameWarningShown = false;
|
||||||
private HashMap<CommsConnType, boolean[]> m_disabMap;
|
private HashMap<CommsConnType, boolean[]> m_disabMap;
|
||||||
private static final int[] s_disabledWhenLocked
|
private static final int[] s_disabledWhenLocked
|
||||||
= { R.id.juggle_players,
|
= { R.id.juggle_players,
|
||||||
|
@ -520,6 +521,8 @@ public class GameConfigDelegate extends DelegateBase
|
||||||
.getSpinner();
|
.getSpinner();
|
||||||
|
|
||||||
m_connLabel = (TextView)findViewById( R.id.conns_label );
|
m_connLabel = (TextView)findViewById( R.id.conns_label );
|
||||||
|
|
||||||
|
findViewById( R.id.room_edit ).setOnClickListener(this);
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -859,6 +862,14 @@ public class GameConfigDelegate extends DelegateBase
|
||||||
saveAndClose( false );
|
saveAndClose( false );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case R.id.room_edit:
|
||||||
|
if ( ! m_nameWarningShown ) {
|
||||||
|
m_nameWarningShown = true;
|
||||||
|
makeNotAgainBuilder( R.string.not_again_warnRoomName,
|
||||||
|
R.string.key_na_warnRoomName )
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Log.w( TAG, "unknown v: " + view.toString() );
|
Log.w( TAG, "unknown v: " + view.toString() );
|
||||||
Assert.failDbg();
|
Assert.failDbg();
|
||||||
|
|
|
@ -159,6 +159,7 @@
|
||||||
|
|
||||||
<string name="key_na_dupstatus_host">key_na_dupstatus_host</string>
|
<string name="key_na_dupstatus_host">key_na_dupstatus_host</string>
|
||||||
<string name="key_na_dupstatus_guest">key_na_dupstatus_guest</string>
|
<string name="key_na_dupstatus_guest">key_na_dupstatus_guest</string>
|
||||||
|
<string name="key_na_warnRoomName">key_na_warnRoomName</string>
|
||||||
|
|
||||||
<!-- Nor is my email address -->
|
<!-- Nor is my email address -->
|
||||||
<string name="email_author_email">xwords@eehouse.org</string>
|
<string name="email_author_email">xwords@eehouse.org</string>
|
||||||
|
|
|
@ -1395,6 +1395,24 @@
|
||||||
settings, e.g. the number of players, cannot be changed without
|
settings, e.g. the number of players, cannot be changed without
|
||||||
restarting it. When you leave this page you will have a chance
|
restarting it. When you leave this page you will have a chance
|
||||||
to discard changes to avoid a restart.</string>
|
to discard changes to avoid a restart.</string>
|
||||||
|
<!-- shown in the game configure screen the first time user taps
|
||||||
|
on the room name edit field. -->
|
||||||
|
<string name="not_again_warnRoomName">
|
||||||
|
Changing the room name? If you’re doing that to connect to an
|
||||||
|
existing game you should know that there’s a better way: have
|
||||||
|
the person who created the game send you an invitation. (She
|
||||||
|
will be prompted to send an invitation whenever she opens a game
|
||||||
|
that’s missing any players.)
|
||||||
|
|
||||||
|
\n\nIf you just want to have a cool room name, no problem!
|
||||||
|
|
||||||
|
\n\nAnd, if you still want to connect by setting room names
|
||||||
|
manually, try to keep the games open on both devices until you
|
||||||
|
see tiles appear.
|
||||||
|
|
||||||
|
\n\n(I am working on fixing this...)
|
||||||
|
</string>
|
||||||
|
|
||||||
<!-- This is shown in the Board screen when you successfully
|
<!-- This is shown in the Board screen when you successfully
|
||||||
connect a game to the relay and are the first device in the
|
connect a game to the relay and are the first device in the
|
||||||
game to do so. -->
|
game to do so. -->
|
||||||
|
|
Loading…
Reference in a new issue