diff --git a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.kt b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.kt index ea9828c..a900abf 100644 --- a/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.kt +++ b/app/src/main/java/ch/dissem/apps/abit/ComposeMessageActivity.kt @@ -98,7 +98,8 @@ class ComposeMessageActivity : AppCompatActivity() { val prefix: String = if (subject.length >= 3 && subject.substring(0, 3).equals( "RE:", ignoreCase = true - )) { + ) + ) { "" } else { "RE: " @@ -107,7 +108,7 @@ class ComposeMessageActivity : AppCompatActivity() { } replyIntent.putExtra( EXTRA_CONTENT, - "\n\n------------------------------------------------------\n" + item.text!! + "\n\n------------------------------------------------------\n${item.text ?: ""}" ) return replyIntent } diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt index f4eac98..6597810 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt +++ b/app/src/main/java/ch/dissem/apps/abit/MessageListFragment.kt @@ -79,7 +79,8 @@ class MessageListFragment : Fragment(), ListHolder