diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 2f0367c477ad370d48d89ffa28d68037f71797f6..0c0c3383890637b4721df1f49d0b229e55c0f361 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -2,7 +2,7 @@ <project version="4"> <component name="deploymentTargetDropDown"> <value> - <entry key="MainActivity"> + <entry key="app"> <State /> </entry> </value> diff --git a/app/src/main/java/com/example/bondoman/ui/hub/settings/SettingsFragment.kt b/app/src/main/java/com/example/bondoman/ui/hub/settings/SettingsFragment.kt index 63cfd6e1ede88474fa6ac0721bec1ddbc91a332a..acc465926732b10d84166143f8f6c820b71a7ef7 100644 --- a/app/src/main/java/com/example/bondoman/ui/hub/settings/SettingsFragment.kt +++ b/app/src/main/java/com/example/bondoman/ui/hub/settings/SettingsFragment.kt @@ -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())}")