mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Add braces to if statement
This commit is contained in:
@@ -15,7 +15,6 @@ import android.provider.Telephony
|
|||||||
import android.telephony.SmsMessage
|
import android.telephony.SmsMessage
|
||||||
import android.telephony.SubscriptionManager
|
import android.telephony.SubscriptionManager
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import android.util.Log
|
|
||||||
import android.util.TypedValue
|
import android.util.TypedValue
|
||||||
import android.view.*
|
import android.view.*
|
||||||
import android.view.inputmethod.EditorInfo
|
import android.view.inputmethod.EditorInfo
|
||||||
@@ -444,7 +443,6 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
val newThreadId = getThreadId(numbers)
|
val newThreadId = getThreadId(numbers)
|
||||||
Log.d(this::class.java.simpleName, "participants: ${numbers.size}")
|
|
||||||
if (threadId != newThreadId) {
|
if (threadId != newThreadId) {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
Intent(this, ThreadActivity::class.java).apply {
|
Intent(this, ThreadActivity::class.java).apply {
|
||||||
@@ -1075,7 +1073,11 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
val text = thread_type_message.text.toString()
|
val text = thread_type_message.text.toString()
|
||||||
val isGroupMms = participants.size > 1 && config.sendGroupMessageMMS
|
val isGroupMms = participants.size > 1 && config.sendGroupMessageMMS
|
||||||
val isLongMmsMessage = getNumPages(settings, text) > settings.sendLongAsMmsAfter && config.sendLongMessageMMS
|
val isLongMmsMessage = getNumPages(settings, text) > settings.sendLongAsMmsAfter && config.sendLongMessageMMS
|
||||||
val res = if (attachmentSelections.isNotEmpty() || isGroupMms || isLongMmsMessage) R.string.mms else R.string.sms
|
val stringId = if (attachmentSelections.isNotEmpty() || isGroupMms || isLongMmsMessage) {
|
||||||
thread_send_message.setText(res)
|
R.string.mms
|
||||||
|
} else {
|
||||||
|
R.string.sms
|
||||||
|
}
|
||||||
|
thread_send_message.setText(stringId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user