Skip to content
Snippets Groups Projects
Commit 882f0fbb authored by MuhamadAjiW's avatar MuhamadAjiW
Browse files

fix: made gmail explicit

parent 3134dfdd
Branches
Tags
1 merge request!23Dev
......@@ -2,7 +2,7 @@
<project version="4">
<component name="deploymentTargetDropDown">
<value>
<entry key="MainActivity">
<entry key="app">
<State />
</entry>
</value>
......
......@@ -129,9 +129,9 @@ class SettingsFragment : Fragment(), ExcelDialogFragment.ExcelDialogListener {
// Prep email
// TODO: set email recipient as the logged in account
val emailRecipient = arrayOf("13521095@std.stei.itb.ac.id")
// val emailIntent = Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto",emailRecipient, null))
val emailIntent = Intent(Intent.ACTION_SEND)
emailIntent.type = "text/plain"
emailIntent.`package` = "com.google.android.gm"
emailIntent.putExtra(Intent.EXTRA_EMAIL, emailRecipient)
emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject))
emailIntent.putExtra(Intent.EXTRA_TEXT, "${getString(R.string.email_text)} ${SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()).format(Date())}")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment