From 372c5da8d09ff9928f937c4288b3f92351a576da Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 21 Jun 2017 12:23:04 -0700 Subject: Add more configs in email builder --- sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sample/src/main/kotlin/ca') 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 -- cgit v1.2.3