Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Format code with ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Feb 28, 2024
1 parent 47fe294 commit 156aebe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ fun CipherViewScreen(
) { innerPadding ->
LazyColumn(
modifier =
Modifier
.fillMaxSize()
.padding(innerPadding)
.padding(horizontal = 16.dp)
Modifier
.fillMaxSize()
.padding(innerPadding)
.padding(horizontal = 16.dp)
) {
item {
when (cipher.type) {
Expand Down
16 changes: 11 additions & 5 deletions utils/src/main/java/dev/medzik/android/utils/Email.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ import android.app.Activity
import android.content.Intent
import android.net.Uri

fun Activity.openEmailApplication(email: String, subject: String, body: String) {
val intent = Intent(
Intent.ACTION_SENDTO,
Uri.parse("mailto:${email}"))
fun Activity.openEmailApplication(
email: String,
subject: String,
body: String
) {
val intent =
Intent(
Intent.ACTION_SENDTO,
Uri.parse("mailto:$email")
)
intent.putExtra(Intent.EXTRA_SUBJECT, subject)
intent.putExtra(Intent.EXTRA_TEXT, body)
startActivity(Intent.createChooser(intent, "Email"))
}
}

0 comments on commit 156aebe

Please sign in to comment.