Skip to content

Commit

Permalink
Merge pull request #17 from IanField90/develop
Browse files Browse the repository at this point in the history
Update share to add crypto, fix travis
  • Loading branch information
IanField90 authored Jan 28, 2017
2 parents 728d7ae + e06a717 commit 117229a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jdk:
env:
global:
- ANDROID_SDK_VERSION="r25.2.2"
- BUILD_TOOLS="24.0.2"
- TARGET_API="24"
- BUILD_TOOLS="25.0.2"
- TARGET_API="25"

android:
components:
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
minSdkVersion 9
targetSdkVersion 25
applicationId 'uk.co.ianfield.devstat'
versionCode 15
versionName '2.3.0'
versionCode 16
versionName '2.3.1'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/java/uk/co/ianfield/devstat/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ protected void emailClick() {
stringBuilder.append("\n");
}

stringBuilder.append(String.format("\n%s\n", getString(R.string.title_crypto)));
for (StatItem item : cryptoStats) {
stringBuilder.append(item.getTitle());
stringBuilder.append(":\n");
stringBuilder.append(item.getInfo());
stringBuilder.append("\n");
}


emailIntent.putExtra(Intent.EXTRA_TEXT, stringBuilder.toString());
startActivity(Intent.createChooser(emailIntent, getString(R.string.send_email)));
}
Expand Down

0 comments on commit 117229a

Please sign in to comment.