From b1fd9d9ef9b32b239ca9c946b72289994dac0868 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Fri, 20 Apr 2018 17:49:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=B4=20Minor=20code=20style=20improveme?= =?UTF-8?q?nts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/abit/ComposeMessageActivity.kt | 5 +- .../dissem/apps/abit/MessageListFragment.kt | 3 +- .../ch/dissem/apps/abit/SettingsFragment.kt | 12 ++--- app/src/main/res/xml/preferences.xml | 48 +++++++++---------- 4 files changed, 35 insertions(+), 33 deletions(-) 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