diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-21 12:23:04 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-21 12:23:04 -0700 |
commit | 372c5da8d09ff9928f937c4288b3f92351a576da (patch) | |
tree | 82bab43c3a54650cdf5978896d21e372f839e6e5 /sample/src/main/kotlin/ca/allanwang | |
parent | 7601adcb8254b4dc1818526061e1013f2e216fc5 (diff) | |
download | kau-372c5da8d09ff9928f937c4288b3f92351a576da.tar.gz kau-372c5da8d09ff9928f937c4288b3f92351a576da.tar.bz2 kau-372c5da8d09ff9928f937c4288b3f92351a576da.zip |
Add more configs in email builder
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index a03857a..8867a00 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -3,6 +3,7 @@ package ca.allanwang.kau.sample import android.os.Bundle import android.view.Menu import android.view.MenuItem +import ca.allanwang.kau.email.sendEmail import ca.allanwang.kau.kpref.KPrefActivity import ca.allanwang.kau.kpref.KPrefAdapterBuilder import ca.allanwang.kau.utils.* @@ -103,6 +104,7 @@ class MainActivity : KPrefActivity() { override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.action_settings -> startActivity(AnimActivity::class.java, clearStack = true) + R.id.action_email -> sendEmail(R.string.your_email, R.string.your_subject) else -> return super.onOptionsItemSelected(item) } return true |