add git describe for version to email body

This commit is contained in:
Andy2 2011-12-06 19:19:50 -08:00
parent 88b0535866
commit 5d09c7bbed
2 changed files with 8 additions and 0 deletions

View file

@ -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>

View file

@ -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 ) );
}