fix a glitch at opening a thread from the New Conversation screen
This commit is contained in:
parent
ef86833b82
commit
e92e3b81e1
|
@ -8,10 +8,7 @@ import android.view.WindowManager
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.reddit.indicatorfastscroll.FastScrollItemIndicator
|
import com.reddit.indicatorfastscroll.FastScrollItemIndicator
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.MyContactsContentProvider
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.helpers.PERMISSION_READ_CONTACTS
|
|
||||||
import com.simplemobiletools.commons.helpers.SimpleContactsHelper
|
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
|
||||||
import com.simplemobiletools.commons.models.SimpleContact
|
import com.simplemobiletools.commons.models.SimpleContact
|
||||||
import com.simplemobiletools.smsmessenger.R
|
import com.simplemobiletools.smsmessenger.R
|
||||||
import com.simplemobiletools.smsmessenger.adapters.ContactsAdapter
|
import com.simplemobiletools.smsmessenger.adapters.ContactsAdapter
|
||||||
|
@ -194,7 +191,7 @@ class NewConversationActivity : SimpleActivity() {
|
||||||
val numbers = phoneNumber.split(";").toSet()
|
val numbers = phoneNumber.split(";").toSet()
|
||||||
val number = if (numbers.size == 1) phoneNumber else Gson().toJson(numbers)
|
val number = if (numbers.size == 1) phoneNumber else Gson().toJson(numbers)
|
||||||
Intent(this, ThreadActivity::class.java).apply {
|
Intent(this, ThreadActivity::class.java).apply {
|
||||||
putExtra(THREAD_ID, getThreadId(numbers).toInt())
|
putExtra(THREAD_ID, getThreadId(numbers))
|
||||||
putExtra(THREAD_TITLE, name)
|
putExtra(THREAD_TITLE, name)
|
||||||
putExtra(THREAD_TEXT, text)
|
putExtra(THREAD_TEXT, text)
|
||||||
putExtra(THREAD_NUMBER, number)
|
putExtra(THREAD_NUMBER, number)
|
||||||
|
|
Loading…
Reference in New Issue