aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
new file mode 100644
index 00000000..72df902c
--- /dev/null
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
@@ -0,0 +1,25 @@
+package com.pitchedapps.frost.utils
+
+import android.content.Context
+import android.support.annotation.StringRes
+import ca.allanwang.kau.email.sendEmail
+import ca.allanwang.kau.utils.string
+import com.pitchedapps.frost.R
+
+/**
+ * Created by Allan Wang on 2017-06-29.
+ */
+enum class Support(@StringRes val title: Int) {
+ FEEDBACK(R.string.feedback),
+ BUG(R.string.bug_report),
+ THEME(R.string.theme_issue),
+ FEATURE(R.string.feature_request);
+
+ fun sendEmail(context: Context) {
+ with(context) {
+ this.sendEmail(string(R.string.dev_email), "${string(R.string.frost_prefix)} ${string(title)}") {
+ addItem("Random Frost ID", Prefs.frostId)
+ }
+ }
+ }
+} \ No newline at end of file