Skip to content

Commit

Permalink
Refactor NoteExt
Browse files Browse the repository at this point in the history
  • Loading branch information
shubertm committed Aug 11, 2024
1 parent dcc8a2f commit b21d36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/dev/arkbuilders/arkmemo/utils/NoteExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ fun Note.getAutoTitle(context: Context? = null): String {
return if (context != null) {
when (this) {
is TextNote -> {
title.ifEmpty { this.text.take(20) }.ifEmpty {
context?.getString(R.string.ark_memo_default_text_note_title) ?: ""
title.ifEmpty { text.take(20) }.ifEmpty {
context.getString(R.string.ark_memo_default_text_note_title) ?: ""
}
}

Expand Down

0 comments on commit b21d36b

Please sign in to comment.