mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
add git describe for version to email body
This commit is contained in:
parent
88b0535866
commit
5d09c7bbed
2 changed files with 8 additions and 0 deletions
|
@ -1814,4 +1814,9 @@
|
|||
<string name="board_menu_file_email">Email author</string>
|
||||
<string name="email_author_subject">Comment about Crosswords</string>
|
||||
<string name="email_author_chooser">Send comment via</string>
|
||||
|
||||
<string name="email_body_revf">(If relevant, please include the
|
||||
version: \"%s\"; and make/model of your phone or
|
||||
tablet.)"</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -65,6 +65,9 @@ public class Utils {
|
|||
context.getString( R.string.email_author_subject ) );
|
||||
String[] addrs = { context.getString( R.string.email_author_email ) };
|
||||
intent.putExtra( Intent.EXTRA_EMAIL, addrs );
|
||||
String body = format( context, R.string.email_body_revf,
|
||||
GitVersion.VERS );
|
||||
intent.putExtra( Intent.EXTRA_TEXT, body );
|
||||
String chooserMsg = context.getString( R.string.email_author_chooser );
|
||||
context.startActivity( Intent.createChooser( intent, chooserMsg ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue