aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-19 21:12:02 -0700
committerAllan Wang <me@allanwang.ca>2017-08-19 21:12:02 -0700
commit8c178bd82d75ef237c97863fae555ca0346e7352 (patch)
tree0d532c6ed127110d1bf66d4522f008419c900b44 /app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
parent1240e2663413b56c5b97c8ff40cb5c1bdc2df23b (diff)
downloadfrost-8c178bd82d75ef237c97863fae555ca0346e7352.tar.gz
frost-8c178bd82d75ef237c97863fae555ca0346e7352.tar.bz2
frost-8c178bd82d75ef237c97863fae555ca0346e7352.zip
Refactor enums and optimize imports
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, 0 insertions, 25 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
deleted file mode 100644
index 72df902c..00000000
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Support.kt
+++ /dev/null
@@ -1,25 +0,0 @@
-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