mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add game name to chat activity title
This commit is contained in:
parent
697fc7d5ca
commit
ab71ac8847
3 changed files with 4 additions and 2 deletions
|
@ -112,7 +112,6 @@
|
|||
<activity android:name="RelayGameActivity"/>
|
||||
|
||||
<activity android:name="ChatActivity"
|
||||
android:label="@string/chat_title"
|
||||
/>
|
||||
|
||||
<service android:name="RelayService"/>
|
||||
|
|
|
@ -403,7 +403,7 @@
|
|||
<string name="chat_other_id">Not me: </string>
|
||||
<string name="chat_send">Send</string>
|
||||
<string name="chat_menu_clear">Clear history</string>
|
||||
<string name="chat_title">Crosswords message history</string>
|
||||
<string name="chat_titlef">%s message history</string>
|
||||
|
||||
<string name="notify_title">Moves made</string>
|
||||
<string name="notify_body">New game moves have arrived</string>
|
||||
|
|
|
@ -67,6 +67,9 @@ public class ChatActivity extends XWActivity implements View.OnClickListener {
|
|||
}
|
||||
|
||||
((Button)findViewById( R.id.send_button )).setOnClickListener( this );
|
||||
|
||||
String fmt = getString( R.string.chat_titlef );
|
||||
setTitle( String.format( fmt, GameUtils.gameName( this, m_path ) ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue