Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Nov 22, 2020
1 parent 1f5d443 commit 7704354
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ internal class EmailBuilder(
private var attachment: Uri? = null

fun addAttachment(uri: Uri?) {
uri ?: return
attachment = uri
attachment = uri ?: return
}

/**
Expand Down Expand Up @@ -82,6 +81,7 @@ internal class EmailBuilder(
return intent
}

@SuppressLint("QueryPermissionsNeeded")
fun buildIntent(context: Context): Intent? {
var resultIntent: Intent? = null
val intent = getIntent(context)
Expand Down Expand Up @@ -126,4 +126,4 @@ fun Context.sendEmail(email: String, subject: String) {

fun Context.sendEmail(email: String, subject: String, message: String) {
EmailBuilder(email, subject, message).execute(this@sendEmail)
}
}

0 comments on commit 7704354

Please sign in to comment.