From 9d90ec13e11a9225e9227532caaf3a0e41946f78 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Thu, 24 Nov 2022 22:46:26 +0100 Subject: [PATCH] formatting some code --- .../simplemobiletools/smsmessenger/extensions/Context.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt index cafb4dcd..57c39af8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt @@ -155,15 +155,15 @@ fun Context.getMMS(threadId: Long? = null, getImageResolutions: Boolean = false, Mms.STATUS ) - var selection:String? = null - var selectionArgs:Array? = null + var selection: String? = null + var selectionArgs: Array? = null if (threadId == null && dateFrom != -1) { selection = "${Sms.DATE} < ${dateFrom.toLong()}" //Should not multiply 1000 here, because date in mms's database is different from sms's. - } else if(threadId != null && dateFrom == -1){ + } else if (threadId != null && dateFrom == -1) { selection = "${Sms.THREAD_ID} = ?" selectionArgs = arrayOf(threadId.toString()) - } else if(threadId != null && dateFrom != -1){ + } else if (threadId != null && dateFrom != -1) { selection = "${Sms.THREAD_ID} = ? AND ${Sms.DATE} < ${dateFrom.toLong()}" selectionArgs = arrayOf(threadId.toString()) }