From 6bca83c464337c37ebcbabe47f8a8e2e44dd4794 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 7 Oct 2017 01:51:47 -0400 Subject: Create email sender base --- app/src/main/kotlin/com/pitchedapps/frost/enums/Support.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/enums') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/enums/Support.kt b/app/src/main/kotlin/com/pitchedapps/frost/enums/Support.kt index a624e429..ef3c88b6 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/enums/Support.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/enums/Support.kt @@ -2,11 +2,9 @@ package com.pitchedapps.frost.enums 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 -import com.pitchedapps.frost.utils.Prefs -import com.pitchedapps.frost.utils.iab.IS_FROST_PRO +import com.pitchedapps.frost.utils.sendFrostEmail /** * Created by Allan Wang on 2017-06-29. @@ -19,9 +17,7 @@ enum class Support(@StringRes val title: Int) { fun sendEmail(context: Context) { with(context) { - this.sendEmail(string(R.string.dev_email), "${string(R.string.frost_prefix)} ${string(title)}") { - val proTag = if (IS_FROST_PRO) "TY" else "FP" - addItem("Random Frost ID", "${Prefs.frostId}-$proTag") + this.sendFrostEmail("${string(R.string.frost_prefix)} ${string(title)}") { } } } -- cgit v1.2.3